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

Issue 2564403002: [android] Make RWHVAndroid a BeginFrameObserver. (Closed)

Created:
4 years ago by Eric Seckler
Modified:
4 years ago
Reviewers:
Ted C, brianderson, Sami, boliu
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, nona+watch_chromium.org, darin-cc_chromium.org, James Su, sunnyps, danakj, enne (OOO), brianderson, Sami
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[android] Make RWHVAndroid a BeginFrameObserver. Instead of directly observing the Window's vsyncs, RWHVAndroid now observes a BeginFrameSource provided by the DelegatedFrameHost (clank) or WindowAndroid (webview). To enable this, the BeginFrameSource originally provided by CompositorImpl moves into WindowAndroid. The patch also makes some changes to the BeginFrameSource's observer iteration that are necessary to support SynchronousBrowserCompositorFilter. BUG=401336, 675289 Committed: https://crrev.com/1a6bd5037fc10e45646715d675e63146d23fc28d Committed: https://crrev.com/8c15fc3eb477cc05d742736cee65b6ea7e1c5f84 Cr-Original-Commit-Position: refs/heads/master@{#439072} Cr-Commit-Position: refs/heads/master@{#439877}

Patch Set 1 : . #

Total comments: 30

Patch Set 2 : Address Bo's comments. #

Patch Set 3 : Address Bo's comments pt2. #

Total comments: 2

Patch Set 4 : Fix ordering in Add/ClearBeginFrameRequest. #

Patch Set 5 : fix crbug.com/675289 #

Total comments: 3

Patch Set 6 : fix comment #

Patch Set 7 : add todo #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -254 lines) Patch
M content/browser/android/synchronous_compositor_browser_filter.h View 1 2 3 chunks +8 lines, -10 lines 0 comments Download
M content/browser/android/synchronous_compositor_browser_filter.cc View 1 2 3 chunks +14 lines, -25 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 1 2 3 4 5 6 7 5 chunks +0 lines, -16 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 7 chunks +1 line, -101 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 7 8 chunks +25 lines, -14 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 13 chunks +95 lines, -64 lines 0 comments Download
M ui/android/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M ui/android/delegated_frame_host_android.h View 2 chunks +8 lines, -4 lines 0 comments Download
M ui/android/delegated_frame_host_android.cc View 1 2 3 4 2 chunks +7 lines, -9 lines 0 comments Download
M ui/android/window_android.h View 1 2 3 4 5 6 7 5 chunks +15 lines, -2 lines 0 comments Download
M ui/android/window_android.cc View 1 2 3 4 5 6 7 5 chunks +123 lines, -5 lines 0 comments Download
M ui/android/window_android_compositor.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/android/window_android_observer.h View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 88 (55 generated)
Eric Seckler
Bo, Do you want to have a first go at this? :)
4 years ago (2016-12-12 16:28:00 UTC) #12
boliu
https://codereview.chromium.org/2564403002/diff/40001/content/browser/android/synchronous_compositor_browser_filter.cc File content/browser/android/synchronous_compositor_browser_filter.cc (right): https://codereview.chromium.org/2564403002/diff/40001/content/browser/android/synchronous_compositor_browser_filter.cc#newcode220 content/browser/android/synchronous_compositor_browser_filter.cc:220: static cc::BeginFrameArgs args; static is overkill https://codereview.chromium.org/2564403002/diff/40001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc ...
4 years ago (2016-12-12 21:41:48 UTC) #17
Eric Seckler
Thanks, Bo! https://codereview.chromium.org/2564403002/diff/40001/content/browser/android/synchronous_compositor_browser_filter.cc File content/browser/android/synchronous_compositor_browser_filter.cc (right): https://codereview.chromium.org/2564403002/diff/40001/content/browser/android/synchronous_compositor_browser_filter.cc#newcode220 content/browser/android/synchronous_compositor_browser_filter.cc:220: static cc::BeginFrameArgs args; On 2016/12/12 21:41:48, boliu ...
4 years ago (2016-12-13 10:03:56 UTC) #19
boliu
haven't looked at new code yet, just replying to comments https://codereview.chromium.org/2564403002/diff/40001/content/browser/android/synchronous_compositor_browser_filter.cc File content/browser/android/synchronous_compositor_browser_filter.cc (right): https://codereview.chromium.org/2564403002/diff/40001/content/browser/android/synchronous_compositor_browser_filter.cc#newcode220 ...
4 years ago (2016-12-13 18:07:48 UTC) #20
Eric Seckler
https://codereview.chromium.org/2564403002/diff/40001/content/browser/android/synchronous_compositor_browser_filter.cc File content/browser/android/synchronous_compositor_browser_filter.cc (right): https://codereview.chromium.org/2564403002/diff/40001/content/browser/android/synchronous_compositor_browser_filter.cc#newcode220 content/browser/android/synchronous_compositor_browser_filter.cc:220: static cc::BeginFrameArgs args; On 2016/12/13 18:07:47, boliu wrote: > ...
4 years ago (2016-12-14 15:36:57 UTC) #25
boliu
lgtm % last comment https://codereview.chromium.org/2564403002/diff/100001/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/2564403002/diff/100001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1451 content/browser/renderer_host/render_widget_host_view_android.cc:1451: if (source && requests && ...
4 years ago (2016-12-14 18:59:48 UTC) #26
Eric Seckler
+tedchoc for ui/android/ Thanks! https://codereview.chromium.org/2564403002/diff/100001/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/2564403002/diff/100001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1451 content/browser/renderer_host/render_widget_host_view_android.cc:1451: if (source && requests && ...
4 years ago (2016-12-15 11:40:22 UTC) #30
Ted C
On 2016/12/15 11:40:22, Eric Seckler wrote: > +tedchoc for ui/android/ > > Thanks! > > ...
4 years ago (2016-12-15 19:14:20 UTC) #33
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/2564403002/120001
4 years ago (2016-12-15 20:46:05 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/327139)
4 years ago (2016-12-15 20:55:04 UTC) #38
Eric Seckler
Brian, could you rubber-stamp the new dependency on '+cc/scheduler/begin_frame_source.h' From ui/android/DEPS? Thanks :)
4 years ago (2016-12-15 21:01:17 UTC) #40
brianderson
lgtm
4 years ago (2016-12-15 21:14:04 UTC) #41
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/2564403002/120001
4 years ago (2016-12-16 09:04:27 UTC) #43
commit-bot: I haz the power
Committed patchset #4 (id:120001)
4 years ago (2016-12-16 09:09:42 UTC) #46
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/1a6bd5037fc10e45646715d675e63146d23fc28d Cr-Commit-Position: refs/heads/master@{#439072}
4 years ago (2016-12-16 09:12:09 UTC) #48
rnephew (Reviews Here)
A revert of this CL (patchset #4 id:120001) has been created in https://codereview.chromium.org/2585993002/ by rnephew@chromium.org. ...
4 years ago (2016-12-17 04:11:05 UTC) #49
Eric Seckler
Bo, can you have another look at changes in RWHVA and WindowAndroid please - Regression ...
4 years ago (2016-12-20 12:46:53 UTC) #60
Sami
The fix lgtm FWIW.
4 years ago (2016-12-20 14:51:00 UTC) #65
boliu
https://codereview.chromium.org/2564403002/diff/200001/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/2564403002/diff/200001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1926 content/browser/renderer_host/render_widget_host_view_android.cc:1926: // can lead to |begin_frame_source_->AddObserver()| and OnBeginFrame(). how does ...
4 years ago (2016-12-20 16:13:50 UTC) #66
Eric Seckler
https://codereview.chromium.org/2564403002/diff/200001/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/2564403002/diff/200001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1926 content/browser/renderer_host/render_widget_host_view_android.cc:1926: // can lead to |begin_frame_source_->AddObserver()| and OnBeginFrame(). On 2016/12/20 ...
4 years ago (2016-12-20 16:35:07 UTC) #67
Eric Seckler
On 2016/12/20 16:35:07, Eric Seckler wrote: > The problem there is that we might send ...
4 years ago (2016-12-20 16:52:46 UTC) #68
boliu
https://codereview.chromium.org/2564403002/diff/200001/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/2564403002/diff/200001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1926 content/browser/renderer_host/render_widget_host_view_android.cc:1926: // can lead to |begin_frame_source_->AddObserver()| and OnBeginFrame(). On 2016/12/20 ...
4 years ago (2016-12-20 16:56:09 UTC) #69
Eric Seckler
On 2016/12/20 16:56:09, boliu wrote: > oh, then do say that in the comment, that ...
4 years ago (2016-12-20 17:29:21 UTC) #70
boliu
On 2016/12/20 16:52:46, Eric Seckler wrote: > On 2016/12/20 16:35:07, Eric Seckler wrote: > > ...
4 years ago (2016-12-20 17:35:48 UTC) #71
Eric Seckler
On 2016/12/20 17:35:48, boliu wrote: > On 2016/12/20 16:52:46, Eric Seckler wrote: > > On ...
4 years ago (2016-12-20 17:41:52 UTC) #72
Eric Seckler
On 2016/12/20 17:35:48, boliu wrote: > On 2016/12/20 16:52:46, Eric Seckler wrote: > > On ...
4 years ago (2016-12-20 17:42:07 UTC) #73
boliu
lgtm
4 years ago (2016-12-20 17:43:35 UTC) #74
Eric Seckler
On 2016/12/20 17:43:35, boliu wrote: > lgtm Thanks again, Bo! :)
4 years ago (2016-12-20 17:48:25 UTC) #75
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/2564403002/240001
4 years ago (2016-12-20 17:49:28 UTC) #78
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/render_widget_host_view_android.cc: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-12-20 19:04:53 UTC) #80
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/2564403002/250001
4 years ago (2016-12-20 19:13:55 UTC) #83
commit-bot: I haz the power
Committed patchset #8 (id:250001)
4 years ago (2016-12-20 20:22:57 UTC) #86
commit-bot: I haz the power
4 years ago (2016-12-20 20:26:24 UTC) #88
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/8c15fc3eb477cc05d742736cee65b6ea7e1c5f84
Cr-Commit-Position: refs/heads/master@{#439877}

Powered by Google App Engine
This is Rietveld 408576698