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

Issue 201583004: Add layerTreeBuildHelper to control layer tree in ContentViewRenderView (Closed)

Created:
6 years, 9 months ago by Yusuf
Modified:
6 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Make it possible to extend ContentViewRenderView Changes to ContentViewRenderView that will enable to us to extend functionality. BUG=353293 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267071

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixed indenting #

Total comments: 2

Patch Set 3 : Moved setting up layer tree to a helper class #

Total comments: 10

Patch Set 4 : Fixes for Yaron's comments. Moved helper to public/ #

Patch Set 5 : GetLayerTree returns a scoped pointer #

Total comments: 4

Patch Set 6 : Git add the new files #

Total comments: 8

Patch Set 7 : Added interface and impl #

Patch Set 8 : Added missing javadoc #

Total comments: 5

Patch Set 9 : Fixed ownership of LayerTreeBuilder and offsetting logic update #

Total comments: 6

Patch Set 10 : Final comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -8 lines) Patch
M content/browser/android/content_view_render_view.h View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -0 lines 0 comments Download
M content/browser/android/content_view_render_view.cc View 1 2 3 4 5 6 7 8 5 chunks +17 lines, -6 lines 0 comments Download
A content/browser/android/layer_tree_build_helper_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +36 lines, -0 lines 0 comments Download
A content/browser/android/layer_tree_build_helper_impl.cc View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 1 comment Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -2 lines 0 comments Download
A content/public/browser/android/layer_tree_build_helper.h View 1 2 3 4 5 6 7 8 9 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
Yusuf
6 years, 9 months ago (2014-03-17 21:03:37 UTC) #1
David Trainor- moved to gerrit
lgtm https://chromiumcodereview.appspot.com/201583004/diff/1/content/browser/android/content_view_render_view.h File content/browser/android/content_view_render_view.h (right): https://chromiumcodereview.appspot.com/201583004/diff/1/content/browser/android/content_view_render_view.h#newcode30 content/browser/android/content_view_render_view.h:30: jlong native_content_view); Fix indenting https://chromiumcodereview.appspot.com/201583004/diff/1/content/browser/android/content_view_render_view.h#newcode43 content/browser/android/content_view_render_view.h:43: protected: New ...
6 years, 9 months ago (2014-03-18 18:33:28 UTC) #2
Yusuf
https://codereview.chromium.org/201583004/diff/1/content/browser/android/content_view_render_view.h File content/browser/android/content_view_render_view.h (right): https://codereview.chromium.org/201583004/diff/1/content/browser/android/content_view_render_view.h#newcode30 content/browser/android/content_view_render_view.h:30: jlong native_content_view); On 2014/03/18 18:33:28, David Trainor wrote: > ...
6 years, 9 months ago (2014-03-19 17:35:09 UTC) #3
Yusuf
The CQ bit was checked by yusufo@chromium.org
6 years, 9 months ago (2014-03-19 17:35:12 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yusufo@chromium.org/201583004/20001
6 years, 9 months ago (2014-03-19 17:36:09 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-19 18:12:56 UTC) #6
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=56192
6 years, 9 months ago (2014-03-19 18:12:56 UTC) #7
Yusuf
yfriedman@ for .../android approval
6 years, 9 months ago (2014-03-19 18:17:12 UTC) #8
Yaron
This seems pretty sievers-y so adding him. Have a comment on internal CL too. https://codereview.chromium.org/201583004/diff/20001/content/browser/android/content_view_render_view.cc ...
6 years, 9 months ago (2014-03-19 19:00:12 UTC) #9
no sievers
Am fine with landing whatever if it helps Yusuf. I don't really like ContentViewRenderView, but ...
6 years, 9 months ago (2014-03-20 22:35:18 UTC) #10
Yusuf
Uploaded new patch to add a helper class. PTAL
6 years, 8 months ago (2014-04-04 21:30:09 UTC) #11
Yaron
Still thinking of the best way to do this but have one proposal inline https://codereview.chromium.org/201583004/diff/40001/content/browser/android/content_view_render_view.cc ...
6 years, 8 months ago (2014-04-10 01:26:09 UTC) #12
Yusuf
https://codereview.chromium.org/201583004/diff/40001/content/browser/android/content_view_render_view.cc File content/browser/android/content_view_render_view.cc (right): https://codereview.chromium.org/201583004/diff/40001/content/browser/android/content_view_render_view.cc#newcode53 content/browser/android/content_view_render_view.cc:53: if (!native_build_helper) On 2014/04/10 01:26:09, Yaron wrote: > Can ...
6 years, 8 months ago (2014-04-23 00:16:14 UTC) #13
Yaron
https://codereview.chromium.org/201583004/diff/70001/content/browser/android/content_view_render_view.cc File content/browser/android/content_view_render_view.cc (right): https://codereview.chromium.org/201583004/diff/70001/content/browser/android/content_view_render_view.cc#newcode18 content/browser/android/content_view_render_view.cc:18: #include "content/public/browser/android/layer_tree_build_helper.h" i think you forgot to "git add" ...
6 years, 8 months ago (2014-04-23 18:54:42 UTC) #14
Yusuf
https://codereview.chromium.org/201583004/diff/70001/content/browser/android/content_view_render_view.cc File content/browser/android/content_view_render_view.cc (right): https://codereview.chromium.org/201583004/diff/70001/content/browser/android/content_view_render_view.cc#newcode18 content/browser/android/content_view_render_view.cc:18: #include "content/public/browser/android/layer_tree_build_helper.h" Oops. Sorry about that. On 2014/04/23 18:54:43, ...
6 years, 8 months ago (2014-04-23 20:00:03 UTC) #15
Yaron
https://codereview.chromium.org/201583004/diff/90001/content/browser/android/content_view_render_view.cc File content/browser/android/content_view_render_view.cc (right): https://codereview.chromium.org/201583004/diff/90001/content/browser/android/content_view_render_view.cc#newcode79 content/browser/android/content_view_render_view.cc:79: root_layer_ = Actually, do we need a ref? Isn't ...
6 years, 8 months ago (2014-04-23 20:57:45 UTC) #16
Yusuf
Sorry my checkout got messed up, so I had to rebase. https://codereview.chromium.org/201583004/diff/90001/content/browser/android/content_view_render_view.cc File content/browser/android/content_view_render_view.cc (right): ...
6 years, 8 months ago (2014-04-24 00:06:03 UTC) #17
Yaron
getting close https://codereview.chromium.org/201583004/diff/130001/content/browser/android/content_view_render_view.cc File content/browser/android/content_view_render_view.cc (right): https://codereview.chromium.org/201583004/diff/130001/content/browser/android/content_view_render_view.cc#newcode40 content/browser/android/content_view_render_view.cc:40: layer_tree_build_helper_(new LayerTreeBuildHelperImpl()), This is problematic. You're leaking ...
6 years, 8 months ago (2014-04-24 19:47:10 UTC) #18
Yusuf
https://codereview.chromium.org/201583004/diff/130001/content/browser/android/content_view_render_view.cc File content/browser/android/content_view_render_view.cc (right): https://codereview.chromium.org/201583004/diff/130001/content/browser/android/content_view_render_view.cc#newcode40 content/browser/android/content_view_render_view.cc:40: layer_tree_build_helper_(new LayerTreeBuildHelperImpl()), Moved the ownership to content_view_render_view. On 2014/04/24 ...
6 years, 7 months ago (2014-04-28 23:18:46 UTC) #19
Yaron
lgtm https://codereview.chromium.org/201583004/diff/150001/content/browser/android/layer_tree_build_helper_impl.h File content/browser/android/layer_tree_build_helper_impl.h (right): https://codereview.chromium.org/201583004/diff/150001/content/browser/android/layer_tree_build_helper_impl.h#newcode16 content/browser/android/layer_tree_build_helper_impl.h:16: class Compositor; Remove both oft hese https://codereview.chromium.org/201583004/diff/150001/content/public/browser/android/layer_tree_build_helper.h File ...
6 years, 7 months ago (2014-04-29 04:24:01 UTC) #20
Yusuf
https://codereview.chromium.org/201583004/diff/150001/content/browser/android/layer_tree_build_helper_impl.h File content/browser/android/layer_tree_build_helper_impl.h (right): https://codereview.chromium.org/201583004/diff/150001/content/browser/android/layer_tree_build_helper_impl.h#newcode16 content/browser/android/layer_tree_build_helper_impl.h:16: class Compositor; On 2014/04/29 04:24:02, Yaron wrote: > Remove ...
6 years, 7 months ago (2014-04-29 17:39:33 UTC) #21
Yusuf
The CQ bit was checked by yusufo@chromium.org
6 years, 7 months ago (2014-04-29 17:39:38 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yusufo@chromium.org/201583004/170001
6 years, 7 months ago (2014-04-29 17:40:40 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 23:30:22 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-04-29 23:30:22 UTC) #25
Yusuf
The CQ bit was checked by yusufo@chromium.org
6 years, 7 months ago (2014-04-30 00:17:23 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yusufo@chromium.org/201583004/170001
6 years, 7 months ago (2014-04-30 00:21:09 UTC) #27
commit-bot: I haz the power
Change committed as 267071
6 years, 7 months ago (2014-04-30 05:00:02 UTC) #28
no sievers
6 years, 7 months ago (2014-05-05 20:03:59 UTC) #29
Message was sent while issue was closed.
https://codereview.chromium.org/201583004/diff/170001/content/browser/android...
File content/browser/android/layer_tree_build_helper_impl.cc (right):

https://codereview.chromium.org/201583004/diff/170001/content/browser/android...
content/browser/android/layer_tree_build_helper_impl.cc:15:
root_layer_->SetBackgroundColor(SK_ColorWHITE);
This layer does not do anything since the bounds are 0.

Powered by Google App Engine
This is Rietveld 408576698