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

Issue 2133873004: content: Move Surfaces related code out of RWHVA. (Closed)

Created:
4 years, 5 months ago by khushalsagar
Modified:
4 years, 4 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

content: Move Surfaces related code out of RWHVA. Move logic for managing cc::Surfaces for CompositorFrames and building Surface Layers to DelegatedFrameHostAndroid from RenderWidgetHostViewAndroid. This patch moves the logic for SurfaceLayers and for drawing the background when there is no content from the renderer. BUG=624666, 618987 Committed: https://crrev.com/a693aa733d2a91627e174d62988c7ef591d963f2 Cr-Commit-Position: refs/heads/master@{#412356}

Patch Set 1 #

Total comments: 1

Patch Set 2 : .. #

Total comments: 1

Patch Set 3 : .. #

Total comments: 13

Patch Set 4 : Rebase. #

Patch Set 5 : Addressed comments. #

Total comments: 23

Patch Set 6 : Rebase. #

Patch Set 7 : Addressed comments. #

Patch Set 8 : null check DFH webview #

Patch Set 9 : remove GetContentLayer #

Total comments: 3

Patch Set 10 : moar null checks #

Total comments: 6

Patch Set 11 : Fix test. #

Total comments: 1

Patch Set 12 : missed overscroll change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+429 lines, -233 lines) Patch
M content/browser/android/content_view_core_impl.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 3 chunks +1 line, -17 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 7 chunks +11 lines, -18 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 10 11 32 chunks +59 lines, -183 lines 0 comments Download
M ui/android/BUILD.gn View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M ui/android/DEPS View 1 2 3 1 chunk +4 lines, -9 lines 0 comments Download
A ui/android/delegated_frame_host_android.h View 1 2 3 4 5 6 7 8 1 chunk +106 lines, -0 lines 0 comments Download
A ui/android/delegated_frame_host_android.cc View 1 2 3 4 5 6 7 8 1 chunk +245 lines, -0 lines 0 comments Download

Messages

Total messages: 59 (30 generated)
Khushal
Only moved out Surfaces related stuff for now. Does this look close to what you ...
4 years, 5 months ago (2016-07-08 23:47:36 UTC) #2
Khushal
On 2016/07/08 23:47:36, Khushal wrote: > Only moved out Surfaces related stuff for now. Does ...
4 years, 5 months ago (2016-07-11 19:49:22 UTC) #3
Khushal
https://codereview.chromium.org/2133873004/diff/1/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/2133873004/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1120 content/browser/renderer_host/render_widget_host_view_android.cc:1120: void RenderWidgetHostViewAndroid::AttachSurfaceLayer( I was looking at removing the Attach ...
4 years, 5 months ago (2016-07-12 02:02:25 UTC) #4
Khushal
I've moved the logic background drawing logic to DelegatedFrameHost, like we discussed. PTAL. +dtrainor if ...
4 years, 4 months ago (2016-07-27 03:41:36 UTC) #7
Khushal
https://codereview.chromium.org/2133873004/diff/20001/content/browser/renderer_host/delegated_frame_host_android.cc File content/browser/renderer_host/delegated_frame_host_android.cc (right): https://codereview.chromium.org/2133873004/diff/20001/content/browser/renderer_host/delegated_frame_host_android.cc#newcode52 content/browser/renderer_host/delegated_frame_host_android.cc:52: surface_manager_ = CompositorImpl::GetSurfaceManager(); Was talking to David about this. ...
4 years, 4 months ago (2016-07-27 21:58:38 UTC) #9
Khushal
friendly pingy! :) Also, if this looks good, should we just move DelegatedFrameHostAndroid to ui/android/ ...
4 years, 4 months ago (2016-07-28 19:13:06 UTC) #11
Khushal
+vmpstr for DEPS stamp!
4 years, 4 months ago (2016-08-02 00:20:58 UTC) #13
Khushal
+vmpstr for DEPS stamp!
4 years, 4 months ago (2016-08-02 00:21:02 UTC) #14
David Trainor- moved to gerrit
Have some comments, but some might be on code you just moved, so they might ...
4 years, 4 months ago (2016-08-04 16:05:46 UTC) #16
xing.xu
As commented here https://bugs.chromium.org/p/chromium/issues/detail?id=597481#c12, now that ViewAndroid.GetLayer's ancestor(CompositorView) has one SolidColorLayer, why bother adding one ...
4 years, 4 months ago (2016-08-09 01:35:05 UTC) #17
Khushal
https://codereview.chromium.org/2133873004/diff/40001/ui/android/delegated_frame_host_android.cc File ui/android/delegated_frame_host_android.cc (right): https://codereview.chromium.org/2133873004/diff/40001/ui/android/delegated_frame_host_android.cc#newcode64 ui/android/delegated_frame_host_android.cc:64: DelegatedFrameHostAndroid::~DelegatedFrameHostAndroid() { On 2016/08/04 16:05:46, David Trainor wrote: > ...
4 years, 4 months ago (2016-08-09 20:54:07 UTC) #19
Khushal
On 2016/08/09 01:35:05, xing.xu wrote: > As commented here > https://bugs.chromium.org/p/chromium/issues/detail?id=597481#c12, now that > ViewAndroid.GetLayer's ...
4 years, 4 months ago (2016-08-09 21:01:25 UTC) #20
Khushal
friendly ping! :) https://codereview.chromium.org/2133873004/diff/40001/ui/android/delegated_frame_host_android.cc File ui/android/delegated_frame_host_android.cc (right): https://codereview.chromium.org/2133873004/diff/40001/ui/android/delegated_frame_host_android.cc#newcode165 ui/android/delegated_frame_host_android.cc:165: surface_layer->SetSurfaceId(surface_id_, 1.f, current_surface_size_); On 2016/08/09 20:54:06, ...
4 years, 4 months ago (2016-08-12 01:49:48 UTC) #22
no sievers
https://codereview.chromium.org/2133873004/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/2133873004/diff/80001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode385 content/browser/renderer_host/render_widget_host_view_android.cc:385: delegated_frame_host_->UpdateSize(GetViewSize()); I *think* you are passing DIP here but ...
4 years, 4 months ago (2016-08-12 19:33:04 UTC) #23
Khushal
https://codereview.chromium.org/2133873004/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/2133873004/diff/80001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode385 content/browser/renderer_host/render_widget_host_view_android.cc:385: delegated_frame_host_->UpdateSize(GetViewSize()); On 2016/08/12 19:33:04, sievers wrote: > I *think* ...
4 years, 4 months ago (2016-08-16 01:34:24 UTC) #26
Khushal
https://codereview.chromium.org/2133873004/diff/160001/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/2133873004/diff/160001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1216 content/browser/renderer_host/render_widget_host_view_android.cc:1216: if (locks_on_frame_count_ == 0) Btw, why is there a ...
4 years, 4 months ago (2016-08-16 06:22:43 UTC) #35
Khushal
https://codereview.chromium.org/2133873004/diff/180001/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/2133873004/diff/180001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode330 content/browser/renderer_host/render_widget_host_view_android.cc:330: DCHECK(!delegated_frame_host_); Looks like this is failing because RenderWidgetHostTest.Background does ...
4 years, 4 months ago (2016-08-16 17:36:14 UTC) #40
no sievers
LGTM w/1 comment https://codereview.chromium.org/2133873004/diff/180001/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/2133873004/diff/180001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1541 content/browser/renderer_host/render_widget_host_view_android.cc:1541: if (delegated_frame_host_ && delegated_frame_host_->HasDelegatedContent()) You meant ...
4 years, 4 months ago (2016-08-16 18:33:00 UTC) #41
Khushal
Thanks Daniel. I had a couple of doubts still. https://codereview.chromium.org/2133873004/diff/160001/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/2133873004/diff/160001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1216 content/browser/renderer_host/render_widget_host_view_android.cc:1216: ...
4 years, 4 months ago (2016-08-16 18:37:36 UTC) #42
David Trainor- moved to gerrit
lgtm but wait for sievers
4 years, 4 months ago (2016-08-16 19:58:06 UTC) #43
vmpstr
rs lgtm
4 years, 4 months ago (2016-08-16 20:28:39 UTC) #44
Khushal
https://codereview.chromium.org/2133873004/diff/200001/content/browser/renderer_host/render_widget_host_unittest.cc File content/browser/renderer_host/render_widget_host_unittest.cc (left): https://codereview.chromium.org/2133873004/diff/200001/content/browser/renderer_host/render_widget_host_unittest.cc#oldcode887 content/browser/renderer_host/render_widget_host_unittest.cc:887: static_cast<RenderWidgetHostViewBase*>(view.release())->Destroy(); I don't know why this is aura only. ...
4 years, 4 months ago (2016-08-16 20:31:52 UTC) #45
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/2133873004/200001
4 years, 4 months ago (2016-08-16 20:32:56 UTC) #48
no sievers
https://codereview.chromium.org/2133873004/diff/160001/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/2133873004/diff/160001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1216 content/browser/renderer_host/render_widget_host_view_android.cc:1216: if (locks_on_frame_count_ == 0) On 2016/08/16 18:37:36, Khushal wrote: ...
4 years, 4 months ago (2016-08-16 20:36:36 UTC) #50
Khushal
https://codereview.chromium.org/2133873004/diff/180001/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/2133873004/diff/180001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1541 content/browser/renderer_host/render_widget_host_view_android.cc:1541: if (delegated_frame_host_ && delegated_frame_host_->HasDelegatedContent()) On 2016/08/16 18:32:59, sievers wrote: ...
4 years, 4 months ago (2016-08-16 20:36:57 UTC) #51
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/2133873004/220001
4 years, 4 months ago (2016-08-16 20:37:32 UTC) #54
Khushal
https://codereview.chromium.org/2133873004/diff/180001/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/2133873004/diff/180001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode330 content/browser/renderer_host/render_widget_host_view_android.cc:330: DCHECK(!delegated_frame_host_); On 2016/08/16 20:36:36, sievers wrote: > On 2016/08/16 ...
4 years, 4 months ago (2016-08-16 20:38:47 UTC) #55
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 4 months ago (2016-08-16 22:18:47 UTC) #57
commit-bot: I haz the power
4 years, 4 months ago (2016-08-16 22:22:19 UTC) #59
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/a693aa733d2a91627e174d62988c7ef591d963f2
Cr-Commit-Position: refs/heads/master@{#412356}

Powered by Google App Engine
This is Rietveld 408576698