Cherry pick "Fix bug 837: realloc mode info buffers on resize";a=commit;h=4e30565a9ff3740f20314501d4190541052240e3

Author: Adrian Grange <>
Date:   Tue Aug 12 11:24:24 2014 -0700

    Fix bug 837: realloc mode info buffers on resize
    The test to determine if the mode info buffers need
    to be resized when the frame size changes was
    incorrect, as per bug 837.
    By storing the size of the allocated data structure,
    a simple test determines whether to allocate more
    memory when the frame size changes.
    Change-Id: I1544698f2882cf958fc672485614f2f46e9719bd

git-svn-id: 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
5 files changed