Re-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}
Showing
Please register or sign in to comment