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

Issue 1385543003: Have RenderWidgetHostViewAndroid own sync compositor (Closed)

Created:
5 years, 2 months ago by boliu
Modified:
5 years, 2 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, nona+watch_chromium.org, darin-cc_chromium.org, James Su, android-webview-reviews_chromium.org, gsennton
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Have RenderWidgetHostViewAndroid own sync compositor Also simplify object lifetimes. Have SynchronousCompositorClient outlive SynchronousCompositor so no need to have code to handle setting and unsetting client. BUG=509702 Committed: https://crrev.com/4f295c427a1b0f08fadf03df85be74ff83ca1734 Cr-Commit-Position: refs/heads/master@{#353221}

Patch Set 1 #

Patch Set 2 : mostly works #

Patch Set 3 : multiprocess works #

Patch Set 4 : clean up #

Patch Set 5 : rebase #

Total comments: 3

Patch Set 6 : add dcheck #

Total comments: 6

Patch Set 7 : review #

Total comments: 12

Patch Set 8 : review #

Total comments: 2

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -129 lines) Patch
M android_webview/native/aw_contents.h View 2 chunks +1 line, -1 line 0 comments Download
M android_webview/native/aw_contents.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_impl.h View 1 2 5 chunks +13 lines, -15 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_impl.cc View 1 2 3 4 5 6 7 16 chunks +55 lines, -85 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 7 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 10 chunks +27 lines, -24 lines 0 comments Download
M content/browser/web_contents/web_contents_android.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 31 (3 generated)
boliu
ptal
5 years, 2 months ago (2015-10-05 14:04:16 UTC) #2
jdduke (slow)
No objections on my end. https://codereview.chromium.org/1385543003/diff/80001/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/1385543003/diff/80001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1771 content/browser/renderer_host/render_widget_host_view_android.cc:1771: sync_compositor_.reset(); What about the ...
5 years, 2 months ago (2015-10-05 19:56:03 UTC) #3
boliu
https://codereview.chromium.org/1385543003/diff/80001/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/1385543003/diff/80001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1771 content/browser/renderer_host/render_widget_host_view_android.cc:1771: sync_compositor_.reset(); On 2015/10/05 19:56:03, jdduke wrote: > What about ...
5 years, 2 months ago (2015-10-06 00:05:30 UTC) #4
boliu
https://codereview.chromium.org/1385543003/diff/80001/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/1385543003/diff/80001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1771 content/browser/renderer_host/render_widget_host_view_android.cc:1771: sync_compositor_.reset(); On 2015/10/06 00:05:30, boliu (slow to review) wrote: ...
5 years, 2 months ago (2015-10-06 01:28:04 UTC) #5
jdduke (slow)
On 2015/10/06 01:28:04, boliu (slow to review) wrote: > https://codereview.chromium.org/1385543003/diff/80001/content/browser/renderer_host/render_widget_host_view_android.cc > File content/browser/renderer_host/render_widget_host_view_android.cc (right): > ...
5 years, 2 months ago (2015-10-06 04:03:10 UTC) #6
boliu
On 2015/10/06 04:03:10, jdduke wrote: > On 2015/10/06 01:28:04, boliu (slow to review) wrote: > ...
5 years, 2 months ago (2015-10-06 12:13:50 UTC) #7
boliu
On 2015/10/06 12:13:50, boliu (slow to review) wrote: > On 2015/10/06 04:03:10, jdduke wrote: > ...
5 years, 2 months ago (2015-10-06 12:27:07 UTC) #8
boliu
On 2015/10/06 12:27:07, boliu (slow to review) wrote: > On 2015/10/06 12:13:50, boliu (slow to ...
5 years, 2 months ago (2015-10-06 16:27:36 UTC) #9
jdduke (slow)
On 2015/10/06 16:27:36, boliu (slow to review) wrote: > The CHECK fails in content_browsertests from ...
5 years, 2 months ago (2015-10-06 16:56:30 UTC) #10
jdduke (slow)
On 2015/10/06 16:56:30, jdduke wrote: > On 2015/10/06 16:27:36, boliu (slow to review) wrote: > ...
5 years, 2 months ago (2015-10-06 16:57:15 UTC) #11
boliu
On 2015/10/06 16:57:15, jdduke wrote: > On 2015/10/06 16:56:30, jdduke wrote: > > On 2015/10/06 ...
5 years, 2 months ago (2015-10-06 16:58:32 UTC) #12
jdduke (slow)
On 2015/10/06 16:58:32, boliu (slow to review) wrote: > On 2015/10/06 16:57:15, jdduke wrote: > ...
5 years, 2 months ago (2015-10-06 17:05:43 UTC) #13
no sievers
https://codereview.chromium.org/1385543003/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/1385543003/diff/100001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode331 content/browser/renderer_host/render_widget_host_view_android.cc:331: using_browser_compositor_(CompositorImpl::IsInitialized()), Can we replace occurences of |using_browser_compositor_| with |sync_compositor_| ...
5 years, 2 months ago (2015-10-07 00:31:51 UTC) #14
boliu
ptal https://codereview.chromium.org/1385543003/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/1385543003/diff/100001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode331 content/browser/renderer_host/render_widget_host_view_android.cc:331: using_browser_compositor_(CompositorImpl::IsInitialized()), On 2015/10/07 00:31:51, sievers wrote: > Can ...
5 years, 2 months ago (2015-10-07 15:01:33 UTC) #15
jdduke (slow)
On 2015/10/07 15:01:33, boliu (slow to review) wrote: > So you are in my camp ...
5 years, 2 months ago (2015-10-07 15:09:05 UTC) #16
boliu
On 2015/10/07 15:09:05, jdduke wrote: > On 2015/10/07 15:01:33, boliu (slow to review) wrote: > ...
5 years, 2 months ago (2015-10-07 15:15:11 UTC) #17
no sievers
On 2015/10/07 15:15:11, boliu (slow to review) wrote: > On 2015/10/07 15:09:05, jdduke wrote: > ...
5 years, 2 months ago (2015-10-07 18:39:03 UTC) #18
boliu
On 2015/10/07 18:39:03, sievers wrote: > On 2015/10/07 15:15:11, boliu (slow to review) wrote: > ...
5 years, 2 months ago (2015-10-07 18:43:30 UTC) #19
no sievers
https://codereview.chromium.org/1385543003/diff/120001/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/1385543003/diff/120001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode874 content/browser/renderer_host/render_widget_host_view_android.cc:874: if (!sync_compositor_ && !IsSurfaceAvailableForCopy()) { nit: Actually even better ...
5 years, 2 months ago (2015-10-07 18:52:58 UTC) #20
no sievers
On 2015/10/07 18:43:30, boliu (slow to review) wrote: > On 2015/10/07 18:39:03, sievers wrote: > ...
5 years, 2 months ago (2015-10-07 18:54:51 UTC) #21
no sievers
https://codereview.chromium.org/1385543003/diff/120001/content/browser/android/in_process/synchronous_compositor_impl.cc File content/browser/android/in_process/synchronous_compositor_impl.cc (right): https://codereview.chromium.org/1385543003/diff/120001/content/browser/android/in_process/synchronous_compositor_impl.cc#newcode35 content/browser/android/in_process/synchronous_compositor_impl.cc:35: class ClientHolder : public base::SupportsUserData::Data { That seems really ...
5 years, 2 months ago (2015-10-07 19:13:38 UTC) #22
boliu
On 2015/10/07 18:54:51, sievers wrote: > On 2015/10/07 18:43:30, boliu (slow to review) wrote: > ...
5 years, 2 months ago (2015-10-07 20:08:45 UTC) #23
boliu
https://codereview.chromium.org/1385543003/diff/120001/content/browser/android/in_process/synchronous_compositor_impl.cc File content/browser/android/in_process/synchronous_compositor_impl.cc (right): https://codereview.chromium.org/1385543003/diff/120001/content/browser/android/in_process/synchronous_compositor_impl.cc#newcode35 content/browser/android/in_process/synchronous_compositor_impl.cc:35: class ClientHolder : public base::SupportsUserData::Data { On 2015/10/07 19:13:38, ...
5 years, 2 months ago (2015-10-08 03:14:44 UTC) #24
no sievers
lgtm w/comments https://codereview.chromium.org/1385543003/diff/120001/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/1385543003/diff/120001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1740 content/browser/renderer_host/render_widget_host_view_android.cc:1740: !content_view_core || !content_view_core_); On 2015/10/08 03:14:44, boliu ...
5 years, 2 months ago (2015-10-08 22:39:29 UTC) #25
boliu
tl;dr: did not change anything https://codereview.chromium.org/1385543003/diff/120001/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/1385543003/diff/120001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1740 content/browser/renderer_host/render_widget_host_view_android.cc:1740: !content_view_core || !content_view_core_); On ...
5 years, 2 months ago (2015-10-09 02:22:16 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1385543003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1385543003/160001
5 years, 2 months ago (2015-10-09 02:32:20 UTC) #29
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 2 months ago (2015-10-09 03:13:59 UTC) #30
commit-bot: I haz the power
5 years, 2 months ago (2015-10-09 03:16:10 UTC) #31
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/4f295c427a1b0f08fadf03df85be74ff83ca1734
Cr-Commit-Position: refs/heads/master@{#353221}

Powered by Google App Engine
This is Rietveld 408576698