Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Issue 2893833005: Re-hook up surfaceRedrawNeededAsync callback. (Closed)

Created:
3 years, 7 months ago by aelias_OOO_until_Jul13
Modified:
3 years, 7 months ago
Reviewers:
Changwan Ryu, boliu
CC:
agrieve+watch_chromium.org, chromium-reviews, liberato (no reviews please)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

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} 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -13 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorSurfaceManager.java View 1 2 5 chunks +24 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorView.java View 1 2 3 chunks +2 lines, -8 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/compositor/CompositorSurfaceManagerTest.java View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (16 generated)
aelias_OOO_until_Jul13
PTAL boliu@ for main review, changwan@ for OWNERS.
3 years, 7 months ago (2017-05-19 22:49:13 UTC) #3
boliu
lgtm
3 years, 7 months ago (2017-05-19 23:04:19 UTC) #5
Changwan Ryu
rubberstamp lgtm
3 years, 7 months ago (2017-05-19 23:11:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2893833005/40001
3 years, 7 months ago (2017-05-20 01:08:13 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-20 04:43:33 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/5e7b4d978a2b9a272fecf89d2856...

Powered by Google App Engine
This is Rietveld 408576698