summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorRobert Carr <racarr@google.com>2016-06-28 17:32:37 -0700
committerRobert Carr <racarr@google.com>2016-06-28 20:09:09 -0700
commit91b22809648a33d64c159e8496773b1b3b2ab6ca (patch)
treeb5de50ac55367df124dca2761a0dd370a3350b4f /tools/aapt2/diff/Diff.cpp
parentdb13dd41a969b05f19c9bfe29786773bf12cb6b3 (diff)
Only use one SurfaceControlWithBackground per AppToken.
In the past, if an app never renders to a SurfaceView, it will be invisible despite having FLAG_OPAQUE. This means an app could leave a totally empty SurfaceView (never drawing in to it) on top of a second SurfaceView, and expect the second one to be visible. This is probably buggy app behavior because FLAG_OPAQUE means if they ever draw anything at all in to the top SurfaceView the bottom one will become totally invisible. However this has worked in the past, so we have to preserve things for apps. To accomplish this we ensure only the bottom most visible SurfaceView for a given AppToken will receive a background. We achieve this by synchronizing through the app token whenever visibility or layering of a SurfaceView changes. Bug: 29580298 Change-Id: I0023326323cb961b56404fd49093384e7b72aa54
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions