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

Issue 492923002: [Android] Consolidate vsync request logic in RWHVAndroid (Closed)

Created:
6 years, 4 months ago by jdduke (slow)
Modified:
6 years, 4 months ago
Reviewers:
no sievers
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, boliu
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Android] Consolidate vsync request logic in RWHVAndroid The current vsync subscription scheme in RWHVAndroid is rather ad-hoc. Formalize the request logic by creating explicit request types, avoiding redundant vsync requests (and the associated JNI call) while also enforcing the validity of such requests (for WebView). BUG=394604 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291296

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : More cleanup #

Total comments: 4

Patch Set 4 : Also preserve requests for the |WasShown()| case #

Patch Set 5 : Accommodate WebView... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -56 lines) Patch
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 3 chunks +11 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 11 chunks +81 lines, -52 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
jdduke (slow)
sievers@: WDYT? It's not really that much cleaner, honestly, but at least it prevents us ...
6 years, 4 months ago (2014-08-20 22:45:25 UTC) #1
no sievers
lgtm https://codereview.chromium.org/492923002/diff/40001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/492923002/diff/40001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1257 content/browser/renderer_host/render_widget_host_view_android.cc:1257: DCHECK(observing_root_window_); I'm not sure this is always true. ...
6 years, 4 months ago (2014-08-21 17:57:11 UTC) #2
jdduke (slow)
OK, I pulled the start/stop observing into separate methods, I think it's a little easier ...
6 years, 4 months ago (2014-08-21 20:50:39 UTC) #3
no sievers
lgtm
6 years, 4 months ago (2014-08-21 20:54:14 UTC) #4
jdduke (slow)
OK, one last minor update (sorry!). Bo mentioned I should tweak this to accomodate WebView, ...
6 years, 4 months ago (2014-08-21 21:57:23 UTC) #5
no sievers
On 2014/08/21 21:57:23, jdduke wrote: > OK, one last minor update (sorry!). Bo mentioned I ...
6 years, 4 months ago (2014-08-21 22:02:12 UTC) #6
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 4 months ago (2014-08-21 22:02:39 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/492923002/80001
6 years, 4 months ago (2014-08-21 22:05:41 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-21 23:21:07 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-21 23:29:00 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/8235)
6 years, 4 months ago (2014-08-21 23:29:01 UTC) #11
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 4 months ago (2014-08-21 23:42:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/492923002/80001
6 years, 4 months ago (2014-08-21 23:44:02 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-22 00:53:03 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (80001) as 291296
6 years, 4 months ago (2014-08-22 01:27:23 UTC) #15
cjhopman
6 years, 4 months ago (2014-08-23 00:19:18 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #5) has been created in
https://codereview.chromium.org/479083006/ by cjhopman@chromium.org.

The reason for reverting is: BUG=406651

In tests, seems we are calling StartObservingRootWindow multiple times..

Powered by Google App Engine
This is Rietveld 408576698