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

Issue 2322943003: cc: Move UI Resource management out of LayerTreeHost. (Closed)

Created:
4 years, 3 months ago by Khushal
Modified:
4 years, 3 months ago
CC:
blink-reviews, cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, sievers+watch_chromium.org, Ian Vollick
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Move UI Resource management out of LayerTreeHost. Moves out the UIResource request tracking into its own class composed into the LayerTreeHost. The code is pretty isolated and doesn't need to live in the host. BUG=625283 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/8ec0740f51368ce84fd4ad5cd5ba9947f47c96cf Cr-Commit-Position: refs/heads/master@{#417812}

Patch Set 1 #

Patch Set 2 : format #

Total comments: 11

Patch Set 3 : addressed comments #

Patch Set 4 : addressed comments. #

Patch Set 5 : test updated #

Patch Set 6 : Missed one place #

Patch Set 7 : Rebase #

Total comments: 2

Patch Set 8 : swap instead of move #

Patch Set 9 : add comment #

Patch Set 10 : move the other comment #

Patch Set 11 : virtual dtor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -237 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/nine_patch_layer_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M cc/layers/painted_scrollbar_layer.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/layers/painted_scrollbar_layer_impl_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 15 chunks +75 lines, -48 lines 0 comments Download
M cc/layers/ui_resource_layer.cc View 4 chunks +14 lines, -9 lines 0 comments Download
M cc/layers/ui_resource_layer_unittest.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M cc/resources/scoped_ui_resource.h View 3 chunks +5 lines, -4 lines 0 comments Download
M cc/resources/scoped_ui_resource.cc View 1 chunk +9 lines, -9 lines 0 comments Download
A cc/resources/ui_resource_manager.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +65 lines, -0 lines 0 comments Download
A cc/resources/ui_resource_manager.cc View 1 2 3 4 5 6 7 1 chunk +79 lines, -0 lines 0 comments Download
M cc/test/fake_layer_tree_host.h View 2 chunks +1 line, -1 line 0 comments Download
M cc/test/fake_scoped_ui_resource.h View 2 chunks +3 lines, -2 lines 0 comments Download
M cc/test/fake_scoped_ui_resource.cc View 2 chunks +9 lines, -7 lines 0 comments Download
M cc/trees/layer_tree.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M cc/trees/layer_tree.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 7 chunks +5 lines, -30 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 6 chunks +13 lines, -67 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_interface.h View 2 chunks +5 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 4 chunks +8 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 8 chunks +18 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/proxy_main.cc View 2 chunks +2 lines, -1 line 0 comments Download
M cc/trees/single_thread_proxy.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
M ui/android/resources/resource_manager_impl.h View 1 2 3 4 5 3 chunks +6 lines, -2 lines 0 comments Download
M ui/android/resources/resource_manager_impl.cc View 1 2 3 4 5 5 chunks +10 lines, -9 lines 0 comments Download
M ui/android/resources/resource_manager_impl_unittest.cc View 1 2 3 4 6 chunks +8 lines, -19 lines 0 comments Download

Messages

Total messages: 34 (18 generated)
Khushal
I still have to update the ResourceManagerImplTest but otherwise this is done. PTAL.
4 years, 3 months ago (2016-09-08 20:11:01 UTC) #3
danakj
Hey, I have a couple drive-by comments just on the interface additions to LayerTree, which ...
4 years, 3 months ago (2016-09-08 20:57:36 UTC) #5
danakj
One more :) https://codereview.chromium.org/2322943003/diff/20001/ui/compositor/compositor.h File ui/compositor/compositor.h (right): https://codereview.chromium.org/2322943003/diff/20001/ui/compositor/compositor.h#newcode419 ui/compositor/compositor.h:419: std::unique_ptr<cc::LayerTreeHostInterface> host_; It's always an inprocess ...
4 years, 3 months ago (2016-09-08 20:58:46 UTC) #6
Khushal
https://codereview.chromium.org/2322943003/diff/20001/cc/layers/ui_resource_layer.cc File cc/layers/ui_resource_layer.cc (right): https://codereview.chromium.org/2322943003/diff/20001/cc/layers/ui_resource_layer.cc#newcode127 cc/layers/ui_resource_layer.cc:127: GetLayerTree()->GetUIResourceManager(), bitmap_); On 2016/09/08 20:57:35, danakj wrote: > How ...
4 years, 3 months ago (2016-09-08 22:05:24 UTC) #7
danakj
So ya, seems okay overall. aelias@ can review the details, thanks for explaining for me. ...
4 years, 3 months ago (2016-09-08 22:37:13 UTC) #8
Khushal
https://codereview.chromium.org/2322943003/diff/20001/cc/layers/ui_resource_layer.cc File cc/layers/ui_resource_layer.cc (right): https://codereview.chromium.org/2322943003/diff/20001/cc/layers/ui_resource_layer.cc#newcode127 cc/layers/ui_resource_layer.cc:127: GetLayerTree()->GetUIResourceManager(), bitmap_); On 2016/09/08 22:37:12, danakj wrote: > On ...
4 years, 3 months ago (2016-09-08 23:56:06 UTC) #9
danakj
On Thu, Sep 8, 2016 at 4:56 PM, <khushalsagar@chromium.org> wrote: > > https://codereview.chromium.org/2322943003/diff/20001/cc/ > layers/ui_resource_layer.cc ...
4 years, 3 months ago (2016-09-09 00:10:39 UTC) #10
danakj
On Thu, Sep 8, 2016 at 4:56 PM, <khushalsagar@chromium.org> wrote: > > https://codereview.chromium.org/2322943003/diff/20001/cc/ > layers/ui_resource_layer.cc ...
4 years, 3 months ago (2016-09-09 00:10:41 UTC) #11
Khushal
+dtrainor for ui
4 years, 3 months ago (2016-09-09 00:14:10 UTC) #13
David Trainor- moved to gerrit
ui/ lgtm :)
4 years, 3 months ago (2016-09-09 05:51:05 UTC) #14
aelias_OOO_until_Jul13
lgtm modulo minor comment, thanks for the cleanup. https://codereview.chromium.org/2322943003/diff/120001/cc/resources/ui_resource_manager.h File cc/resources/ui_resource_manager.h (right): https://codereview.chromium.org/2322943003/diff/120001/cc/resources/ui_resource_manager.h#newcode41 cc/resources/ui_resource_manager.h:41: std::vector<UIResourceRequest> ...
4 years, 3 months ago (2016-09-09 23:53:34 UTC) #23
Khushal
Thanks Alex. https://codereview.chromium.org/2322943003/diff/120001/cc/resources/ui_resource_manager.h File cc/resources/ui_resource_manager.h (right): https://codereview.chromium.org/2322943003/diff/120001/cc/resources/ui_resource_manager.h#newcode41 cc/resources/ui_resource_manager.h:41: std::vector<UIResourceRequest> TakeUIResourcesRequests(); On 2016/09/09 23:53:34, aelias wrote: ...
4 years, 3 months ago (2016-09-10 00:11:22 UTC) #24
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/2322943003/180001
4 years, 3 months ago (2016-09-10 00:12:37 UTC) #27
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/2322943003/200001
4 years, 3 months ago (2016-09-10 01:34:26 UTC) #31
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 3 months ago (2016-09-10 03:16:29 UTC) #32
commit-bot: I haz the power
4 years, 3 months ago (2016-09-10 03:20:05 UTC) #34
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/8ec0740f51368ce84fd4ad5cd5ba9947f47c96cf
Cr-Commit-Position: refs/heads/master@{#417812}

Powered by Google App Engine
This is Rietveld 408576698