DescriptionRe-hook up surfaceRedrawNeededAsync callback.
This method was accidentally left unimplemented after
CompositorSurfaceManager was made the canonical SurfaceHolder.Callback2
implementation, leaving the CompositorView one dangling with no
callsites. Because https://codereview.chromium.org/2201483002 also
changed it so that SurfaceViews are created later, at native library
load time, and always visible, bringing this back does not bring back
the black flicker associated with implementing this method on an
invisible View. So we can safely reimplement it.
I changed CompositorView to inherit from a new interface because
surfaceRedrawNeededAsync is still not exposed in the SDK.
(In the future, we can also look into attaching the opaque SurfaceView
as early as possible -- instead of when the native library is loaded --
in order to avoid a flicker of View system content, given that this
callback should block the system from drawing until it's ready.)
BUG=512636
Review-Url: https://codereview.chromium.org/2893833005
Cr-Commit-Position: refs/heads/master@{#473414}
Committed: https://chromium.googlesource.com/chromium/src/+/5e7b4d978a2b9a272fecf89d28562e9b724f53e5
Patch Set 1 #Patch Set 2 : Fix compile #Patch Set 3 : Add another interface to fix unit test compile #
Messages
Total messages: 21 (16 generated)
|