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

Issue 13068002: Send vsync notification from browser to renderer (Closed)

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

Description

Send vsync notification from browser to renderer on Android Allow the renderer to subscribe to a vsync notification from the browser. This change adds the necessary IPC plumbing but does not actually implement the vsync signal source; this is done with a separate patch. BUG=149227 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195136

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rename EnableVSyncNotification to SetVSyncNotificationEnabled #

Total comments: 6

Patch Set 3 : Feedback from jam. #

Patch Set 4 : Made the RWHV API Android-only. #

Total comments: 6

Patch Set 5 : Move code into Android ifdef. #

Total comments: 1

Patch Set 6 : Move ifdef'd messages to the end. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -3 lines) Patch
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 3 chunks +12 lines, -1 line 0 comments Download
M content/renderer/gpu/compositor_output_surface.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/gpu/compositor_output_surface.cc View 1 2 3 4 5 2 chunks +19 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Sami
This patch adds the plumbing for vsync notifications between the browser and the renderer. PTAL.
7 years, 9 months ago (2013-03-25 18:27:38 UTC) #1
mkosiba (inactive)
lgtm https://codereview.chromium.org/13068002/diff/1/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://codereview.chromium.org/13068002/diff/1/content/browser/renderer_host/render_widget_host_impl.h#newcode584 content/browser/renderer_host/render_widget_host_impl.h:584: void OnEnableVSyncNotification(bool enable); nit: Enable usually means a ...
7 years, 9 months ago (2013-03-26 13:51:48 UTC) #2
Sami
https://codereview.chromium.org/13068002/diff/1/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://codereview.chromium.org/13068002/diff/1/content/browser/renderer_host/render_widget_host_impl.h#newcode584 content/browser/renderer_host/render_widget_host_impl.h:584: void OnEnableVSyncNotification(bool enable); On 2013/03/26 13:51:48, Martin Kosiba wrote: ...
7 years, 9 months ago (2013-03-26 17:51:35 UTC) #3
Sami
cc:backer
7 years, 9 months ago (2013-03-26 17:52:46 UTC) #4
jamesr
lgtm for content/renderer/, but I can't review the rest.
7 years, 9 months ago (2013-03-27 00:48:10 UTC) #5
Sami
Thanks guys. Adding some owners: piman: Mind checking the changes in content/browser? palmer: Please check ...
7 years, 9 months ago (2013-03-27 11:58:41 UTC) #6
jam
where are the view implementations? i.e. why aren't they part of this change? https://codereview.chromium.org/13068002/diff/5001/content/browser/renderer_host/render_widget_host_impl.cc File ...
7 years, 9 months ago (2013-03-27 16:13:06 UTC) #7
Sami
Thanks jam, all comments addressed. > where are the view implementations? i.e. why aren't they ...
7 years, 9 months ago (2013-03-27 17:38:06 UTC) #8
jam
On 2013/03/27 17:38:06, Sami wrote: > Thanks jam, all comments addressed. > > > where ...
7 years, 9 months ago (2013-03-27 19:31:41 UTC) #9
piman
On Wed, Mar 27, 2013 at 12:31 PM, <jam@chromium.org> wrote: > On 2013/03/27 17:38:06, Sami ...
7 years, 9 months ago (2013-03-27 19:38:32 UTC) #10
palmer
IPC security LGTM
7 years, 9 months ago (2013-03-27 20:27:54 UTC) #11
jam
On 2013/03/27 19:38:32, piman wrote: > On Wed, Mar 27, 2013 at 12:31 PM, <mailto:jam@chromium.org> ...
7 years, 9 months ago (2013-03-27 23:21:53 UTC) #12
piman
On Wed, Mar 27, 2013 at 4:21 PM, <jam@chromium.org> wrote: > On 2013/03/27 19:38:32, piman ...
7 years, 9 months ago (2013-03-27 23:42:59 UTC) #13
Sami
On 2013/03/27 23:42:59, piman wrote: > Why should we not try to converge platforms? > ...
7 years, 9 months ago (2013-03-28 14:47:06 UTC) #14
Sami
Looks like this got stalled a bit. jam/piman, I'm happy to move this inside an ...
7 years, 8 months ago (2013-04-08 17:41:09 UTC) #15
piman
On 2013/04/08 17:41:09, Sami wrote: > Looks like this got stalled a bit. jam/piman, I'm ...
7 years, 8 months ago (2013-04-08 18:00:14 UTC) #16
Sami
On 2013/04/08 18:00:14, piman wrote: > I'd strongly prefer no ifdefs. I agree. jam, wdyt?
7 years, 8 months ago (2013-04-09 11:02:16 UTC) #17
no sievers
Since this is all per-view: Would the compositor instance in the renderer for a given ...
7 years, 8 months ago (2013-04-09 16:13:05 UTC) #18
Sami
On 2013/04/09 16:13:05, Daniel Sievers wrote: > Since this is all per-view: Would the compositor ...
7 years, 8 months ago (2013-04-09 16:32:56 UTC) #19
Sami
Thanks all. jam, any thoughts on this patch?
7 years, 8 months ago (2013-04-10 18:20:04 UTC) #20
jam
sorry for the delay, I missed all these messages. in the future, feel free to ...
7 years, 8 months ago (2013-04-12 16:34:02 UTC) #21
Sami
On 2013/04/12 16:34:02, jam wrote: > sorry for the delay, I missed all these messages. ...
7 years, 8 months ago (2013-04-15 16:44:49 UTC) #22
jam
https://codereview.chromium.org/13068002/diff/31001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/13068002/diff/31001/content/browser/renderer_host/render_widget_host_impl.cc#newcode367 content/browser/renderer_host/render_widget_host_impl.cc:367: IPC_MESSAGE_HANDLER(ViewHostMsg_SetVSyncNotificationEnabled, since these messages are only sent/received on android, ...
7 years, 8 months ago (2013-04-16 16:40:34 UTC) #23
Sami
Thanks. All comments addressed, PTAL. https://codereview.chromium.org/13068002/diff/31001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/13068002/diff/31001/content/browser/renderer_host/render_widget_host_impl.cc#newcode367 content/browser/renderer_host/render_widget_host_impl.cc:367: IPC_MESSAGE_HANDLER(ViewHostMsg_SetVSyncNotificationEnabled, On 2013/04/16 16:40:34, ...
7 years, 8 months ago (2013-04-16 17:13:05 UTC) #24
jam
lgtm https://codereview.chromium.org/13068002/diff/41001/content/renderer/gpu/compositor_output_surface.cc File content/renderer/gpu/compositor_output_surface.cc (right): https://codereview.chromium.org/13068002/diff/41001/content/renderer/gpu/compositor_output_surface.cc#newcode136 content/renderer/gpu/compositor_output_surface.cc:136: #if defined(OS_ANDROID) nit: convention is to put ifdef ...
7 years, 8 months ago (2013-04-16 22:55:50 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/13068002/47001
7 years, 8 months ago (2013-04-19 10:44:04 UTC) #26
commit-bot: I haz the power
7 years, 8 months ago (2013-04-19 12:46:53 UTC) #27
Message was sent while issue was closed.
Change committed as 195136

Powered by Google App Engine
This is Rietveld 408576698