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

Issue 11959036: Implement vsync notification on Android (Closed)

Created:
7 years, 11 months ago by Sami
Modified:
7 years, 8 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

Implement vsync notification on Android This patch implements a vsync notification from the browser to the renderer on Android. The vsync signal provider keeps track of all subscriptions to the signal and makes sure it is not enabled when not needed. BUG=149227 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195491

Patch Set 1 #

Patch Set 2 : Rebased. #

Patch Set 3 : Rebased. #

Total comments: 1

Patch Set 4 : Rename sendVSync to onVSync. #

Patch Set 5 : Rebased. #

Total comments: 1

Patch Set 6 : Consolidate vsync code into a new VSyncProvider class. #

Patch Set 7 : Refactoring suggested by bulach@. #

Total comments: 1

Patch Set 8 : Rename to VSyncAdapter, make methods package-private. #

Patch Set 9 : Make VSyncAdapter static to fix findbugs error. #

Patch Set 10 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -39 lines) Patch
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +24 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 8 9 4 chunks +42 lines, -11 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java View 1 2 3 4 5 6 7 8 3 chunks +47 lines, -23 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/VSyncManager.java View 1 2 3 4 5 6 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
Sami
Here's the vsync provider implementation for Android. PTAL.
7 years, 9 months ago (2013-03-28 19:30:26 UTC) #1
jamesr
lgtm on idea (although i have no OWNERS)
7 years, 9 months ago (2013-03-28 19:37:28 UTC) #2
Sami
Thanks, adding some owners: Daniel, ptal at content/browser/android and content/browser/renderer_host. Ted, how do you like ...
7 years, 8 months ago (2013-04-08 17:27:41 UTC) #3
no sievers
Looks fine, basically. But comes out a bit confusing semantically now with UpdateVSyncParameters() and SendVSync(), ...
7 years, 8 months ago (2013-04-08 17:58:06 UTC) #4
Sami
On 2013/04/08 17:58:06, Daniel Sievers wrote: > Looks fine, basically. But comes out a bit ...
7 years, 8 months ago (2013-04-08 18:18:17 UTC) #5
no sievers
Ok, sounds good then. What do you think about renaming SendVSync() to OnVSync() to differentiate ...
7 years, 8 months ago (2013-04-09 15:36:55 UTC) #6
Sami
On 2013/04/09 15:36:55, Daniel Sievers wrote: > Ok, sounds good then. What do you think ...
7 years, 8 months ago (2013-04-09 15:55:02 UTC) #7
no sievers
lgtm. Just to be annoying: If each compositor enables/disables notifications separately from the renderer, it ...
7 years, 8 months ago (2013-04-09 16:20:03 UTC) #8
Sami
On 2013/04/09 16:20:03, Daniel Sievers wrote: > lgtm. > > Just to be annoying: I ...
7 years, 8 months ago (2013-04-09 16:48:57 UTC) #9
no sievers
On 2013/04/09 16:48:57, Sami wrote: > On 2013/04/09 16:20:03, Daniel Sievers wrote: > > lgtm. ...
7 years, 8 months ago (2013-04-09 17:12:42 UTC) #10
Sami
> Random sidenote: To have a bit more of the scheduling logic shared and live ...
7 years, 8 months ago (2013-04-09 17:50:54 UTC) #11
Sami
Marcus, can I get your stamp of approval for content/public/android?
7 years, 8 months ago (2013-04-19 11:11:10 UTC) #12
bulach
lgtm, one suggestion below, feel free to do separately if you prefer.. https://codereview.chromium.org/11959036/diff/20001/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java File content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java ...
7 years, 8 months ago (2013-04-19 11:28:49 UTC) #13
Sami
On 2013/04/19 11:28:49, bulach wrote: > suggestion: I suppose the responsibilities here a bit mixed, ...
7 years, 8 months ago (2013-04-19 13:29:21 UTC) #14
bulach
lgtm, thanks!
7 years, 8 months ago (2013-04-19 14:20:22 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/11959036/24002
7 years, 8 months ago (2013-04-19 14:37:45 UTC) #16
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-19 14:39:25 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/11959036/24002
7 years, 8 months ago (2013-04-19 14:51:07 UTC) #18
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=54700
7 years, 8 months ago (2013-04-19 16:05:37 UTC) #19
Sami
Thanks Marcus! Here's the refactoring you suggested to reduce coupling.
7 years, 8 months ago (2013-04-19 17:56:07 UTC) #20
bulach
lgtm, thanks! one suggestion below, not sure if the name would make it any better.. ...
7 years, 8 months ago (2013-04-19 18:11:51 UTC) #21
Sami
On 2013/04/19 18:11:51, bulach wrote: > lgtm, thanks! one suggestion below, not sure if the ...
7 years, 8 months ago (2013-04-19 18:24:43 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/11959036/23009
7 years, 8 months ago (2013-04-19 18:24:59 UTC) #23
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=54807
7 years, 8 months ago (2013-04-19 20:04:35 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/11959036/36001
7 years, 8 months ago (2013-04-22 09:50:53 UTC) #25
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/render_widget_host_view_android.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-22 09:50:55 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/11959036/24008
7 years, 8 months ago (2013-04-22 10:17:34 UTC) #27
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=105230
7 years, 8 months ago (2013-04-22 11:03:36 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/11959036/24008
7 years, 8 months ago (2013-04-22 11:08:04 UTC) #29
commit-bot: I haz the power
7 years, 8 months ago (2013-04-22 12:41:11 UTC) #30
Message was sent while issue was closed.
Change committed as 195491

Powered by Google App Engine
This is Rietveld 408576698