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

Issue 322443002: cc: Refactor how picture layers are exposed to the tile manager. (Closed)

Created:
6 years, 6 months ago by reveman
Modified:
6 years, 6 months ago
Reviewers:
vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Refactor how picture layers are exposed to the tile manager. This moves the vector of registered picture layers from the tile manager to LTHI. Allows layers to be registered in ctor and unregistered in dtor instead of having to unregister them from the tile manager and then re-register them as needed. The picture layer vector is exposed to the tile manager using a client function and this vector will include all existing PictureLayerImpl instances. Whether it makes sense for the tile manager to use a layer or not depends on the return value of PictureLayerImpl::HasValidTilePriorities(). BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276665

Patch Set 1 #

Total comments: 11

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : fix tile manager perf tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -257 lines) Patch
M cc/layers/picture_layer_impl.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 chunks +10 lines, -15 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 2 chunks +0 lines, -160 lines 0 comments Download
M cc/resources/tile_manager.h View 4 chunks +3 lines, -6 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 6 chunks +16 lines, -44 lines 0 comments Download
M cc/resources/tile_manager_perftest.cc View 1 2 3 3 chunks +1 line, -7 lines 0 comments Download
M cc/resources/tile_manager_unittest.cc View 1 7 chunks +11 lines, -21 lines 0 comments Download
M cc/test/fake_tile_manager_client.h View 1 1 chunk +8 lines, -1 line 0 comments Download
M cc/test/fake_tile_manager_client.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 4 chunks +7 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 2 chunks +17 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 2 chunks +4 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
reveman
https://codereview.chromium.org/322443002/diff/1/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/322443002/diff/1/cc/layers/picture_layer_impl.cc#newcode1383 cc/layers/picture_layer_impl.cc:1383: bool PictureLayerImpl::IsViableSourceOfRasterAndEvictionTiles() const { What else is needed here? ...
6 years, 6 months ago (2014-06-05 22:15:18 UTC) #1
vmpstr
https://codereview.chromium.org/322443002/diff/1/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/322443002/diff/1/cc/layers/picture_layer_impl.cc#newcode1383 cc/layers/picture_layer_impl.cc:1383: bool PictureLayerImpl::IsViableSourceOfRasterAndEvictionTiles() const { On 2014/06/05 22:15:18, reveman wrote: ...
6 years, 6 months ago (2014-06-05 22:38:02 UTC) #2
reveman
PTAL https://codereview.chromium.org/322443002/diff/1/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/322443002/diff/1/cc/layers/picture_layer_impl.cc#newcode1383 cc/layers/picture_layer_impl.cc:1383: bool PictureLayerImpl::IsViableSourceOfRasterAndEvictionTiles() const { On 2014/06/05 22:38:01, vmpstr ...
6 years, 6 months ago (2014-06-06 17:27:24 UTC) #3
vmpstr
Let me know if my comments make sense. I think we should land this instead ...
6 years, 6 months ago (2014-06-11 18:49:46 UTC) #4
vmpstr
Disregard my last comment. lgtm after you put in a description. Thanks https://codereview.chromium.org/322443002/diff/20001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc ...
6 years, 6 months ago (2014-06-11 19:00:35 UTC) #5
reveman
Added a description. https://codereview.chromium.org/322443002/diff/20001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (left): https://codereview.chromium.org/322443002/diff/20001/cc/layers/picture_layer_impl.cc#oldcode1396 cc/layers/picture_layer_impl.cc:1396: if (!layer_tree_impl()->IsPendingTree()) On 2014/06/11 19:00:35, vmpstr ...
6 years, 6 months ago (2014-06-11 20:09:00 UTC) #6
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 6 months ago (2014-06-11 20:09:11 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/322443002/40001
6 years, 6 months ago (2014-06-11 20:12:34 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 21:00:23 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 21:04:26 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/15635) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/18772)
6 years, 6 months ago (2014-06-11 21:04:27 UTC) #11
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 6 months ago (2014-06-11 21:19:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/322443002/60001
6 years, 6 months ago (2014-06-11 21:22:20 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 22:42:06 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 22:43:52 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/15735)
6 years, 6 months ago (2014-06-11 22:43:53 UTC) #16
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 6 months ago (2014-06-12 03:18:29 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/322443002/60001
6 years, 6 months ago (2014-06-12 03:21:28 UTC) #18
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 14:19:20 UTC) #19
Message was sent while issue was closed.
Change committed as 276665

Powered by Google App Engine
This is Rietveld 408576698