summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2015-11-12 23:40:58 -0800
committerChong Zhang <chz@google.com>2015-11-13 13:03:48 -0800
commitf4abc2b701c23978e8bd5e4fc3e183e519aede4a (patch)
treeea926b49b3999c98d771275b9819bb010854c383 /tools/aapt2/java/JavaClassGenerator.cpp
parenta1ace2219a8598e48b70906a96a012a9016ea5f8 (diff)
Need to updateSurface if surface size was changed in relayoutWindow
On some chips, SurfaceControl.setSize will not take effect for several frames. We have to also do a updateSurface/invalidate (which destroys and creates the EGLSurface) to get the size right. Keep track of SurfaceControl size changes in window manager, and pass that to ViewRootImpl, so that a updateSurface is done either the surface itself or its size is changed. Note that we don't use frame size change to trigger updateSurface, because frame size could be different from the surface size that window manager set. For example during drag resizing, the surface size is fullscreen although frame size changes constantly. Doing updateSurface upon frame size change could cause us to do many unnecessary updateSurface. bug: 25583942 Change-Id: I1989613a187bb6ef1c179bd2800c6a7b01fcdb3a
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions