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

Issue 12353003: cc: Refactored Tile::GetResourceId (Closed)

Created:
7 years, 9 months ago by vmpstr
Modified:
7 years, 9 months ago
Reviewers:
nduca, reveman, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, Leandro Gracia Gil, reveman
Visibility:
Public.

Description

cc: Refactored Tile::GetResourceId With alternative methods of rending a quad being developed, GetResourceId needs to change to accomodate this. Instead, TileDrawingInfo class is introduce to encapsulate the different methods (solid tile, streaming picture pile, etc) BUG=173011 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187784

Patch Set 1 #

Patch Set 2 : removed forward declare #

Total comments: 6

Patch Set 3 : enne's review (partial) #

Patch Set 4 : style fixes #

Patch Set 5 : more changes #

Total comments: 4

Patch Set 6 : moved drawing info into mts #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 6

Patch Set 9 : reviews #

Patch Set 10 : #

Total comments: 6

Patch Set 11 : cleaned up tile manager a bit #

Patch Set 12 : reveman's review #

Patch Set 13 : compile fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -199 lines) Patch
M cc/cc.gyp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A cc/managed_tile_state.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +117 lines, -0 lines 0 comments Download
A cc/managed_tile_state.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +82 lines, -0 lines 0 comments Download
M cc/picture_layer_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +47 lines, -36 lines 0 comments Download
M cc/picture_layer_tiling.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +5 lines, -5 lines 0 comments Download
M cc/picture_layer_tiling_set.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M cc/picture_layer_tiling_set_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M cc/tile.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +7 lines, -32 lines 0 comments Download
M cc/tile.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -4 lines 0 comments Download
M cc/tile_manager.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -31 lines 0 comments Download
M cc/tile_manager.cc View 1 2 3 4 5 6 7 8 9 10 16 chunks +52 lines, -88 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
vmpstr
7 years, 9 months ago (2013-02-27 22:00:16 UTC) #1
enne (OOO)
https://codereview.chromium.org/12353003/diff/2001/cc/picture_layer_impl.cc File cc/picture_layer_impl.cc (right): https://codereview.chromium.org/12353003/diff/2001/cc/picture_layer_impl.cc#newcode158 cc/picture_layer_impl.cc:158: resource = iter->drawing_info().get_resource_id(); I think this isn't safe, given ...
7 years, 9 months ago (2013-02-27 22:13:57 UTC) #2
vmpstr
On 2013/02/27 22:13:57, enne wrote: > https://codereview.chromium.org/12353003/diff/2001/cc/picture_layer_impl.cc > File cc/picture_layer_impl.cc (right): > > https://codereview.chromium.org/12353003/diff/2001/cc/picture_layer_impl.cc#newcode158 > ...
7 years, 9 months ago (2013-02-28 00:46:46 UTC) #3
enne (OOO)
On 2013/02/28 00:46:46, vmpstr wrote: > I do prefer that GetResourceId DCHECKs if the resource ...
7 years, 9 months ago (2013-02-28 01:03:49 UTC) #4
enne (OOO)
On 2013/02/28 01:03:49, enne wrote: > I don't really feel too strongly about this. It ...
7 years, 9 months ago (2013-02-28 02:53:23 UTC) #5
vmpstr
On 2013/02/28 02:53:23, enne wrote: > On 2013/02/28 01:03:49, enne wrote: > > > I ...
7 years, 9 months ago (2013-02-28 17:28:40 UTC) #6
enne (OOO)
+reveman, ccameron I'm not totally sure that that inversion makes sense. At the very least, ...
7 years, 9 months ago (2013-02-28 18:01:03 UTC) #7
Leandro GraciĆ” Gil
In case it helps, I'm looking into adding a new mode to TileDrawingInfo to support ...
7 years, 9 months ago (2013-03-07 20:48:12 UTC) #8
ccameron
On 2013/02/28 18:01:03, enne wrote: > +reveman, ccameron > > I'm not totally sure that ...
7 years, 9 months ago (2013-03-07 21:49:49 UTC) #9
nduca
https://codereview.chromium.org/12353003/diff/16001/cc/tile_manager.h File cc/tile_manager.h (left): https://codereview.chromium.org/12353003/diff/16001/cc/tile_manager.h#oldcode78 cc/tile_manager.h:78: bool can_be_freed; I would like to see drawing_info_ be ...
7 years, 9 months ago (2013-03-07 21:52:29 UTC) #10
reveman
https://codereview.chromium.org/12353003/diff/16001/cc/tile.h File cc/tile.h (right): https://codereview.chromium.org/12353003/diff/16001/cc/tile.h#newcode80 cc/tile.h:80: inline size_t bytes_consumed_if_texture_allocated() const { I don't think you ...
7 years, 9 months ago (2013-03-07 22:02:14 UTC) #11
reveman
I generally think of the tile manager as consuming cc::Tile and producing cc::ManagedTileState. If these ...
7 years, 9 months ago (2013-03-07 22:27:35 UTC) #12
vmpstr
I've updated the patch. I moved the drawing info into the managed tile state. I ...
7 years, 9 months ago (2013-03-07 22:57:25 UTC) #13
Leandro GraciĆ” Gil
If there are no further comments I'll start implementing my patch over the current contents ...
7 years, 9 months ago (2013-03-12 19:37:20 UTC) #14
enne (OOO)
lgtm. Thanks for all the changes; I like this last patch quite a bit. :) ...
7 years, 9 months ago (2013-03-12 19:42:13 UTC) #15
nduca
looks mostly good. tweaks and eitehr get final review from reveman or very proactively remind ...
7 years, 9 months ago (2013-03-12 19:44:34 UTC) #16
enne (OOO)
https://codereview.chromium.org/12353003/diff/27002/cc/picture_layer_impl.cc File cc/picture_layer_impl.cc (right): https://codereview.chromium.org/12353003/diff/27002/cc/picture_layer_impl.cc#newcode157 cc/picture_layer_impl.cc:157: if (!*iter || !iter->drawing_info().IsReadyToDraw()) { On 2013/03/12 19:44:34, nduca ...
7 years, 9 months ago (2013-03-12 19:48:04 UTC) #17
reveman
latest patch looks good. https://codereview.chromium.org/12353003/diff/27002/cc/tile_drawing_info.h File cc/tile_drawing_info.h (right): https://codereview.chromium.org/12353003/diff/27002/cc/tile_drawing_info.h#newcode15 cc/tile_drawing_info.h:15: class CC_EXPORT TileDrawingInfo { On ...
7 years, 9 months ago (2013-03-12 21:54:41 UTC) #18
vmpstr
Thanks for the reviews! I've addressed all issues that were mentioned. Note that I had ...
7 years, 9 months ago (2013-03-12 22:14:45 UTC) #19
reveman
https://codereview.chromium.org/12353003/diff/42001/cc/managed_tile_state.cc File cc/managed_tile_state.cc (right): https://codereview.chromium.org/12353003/diff/42001/cc/managed_tile_state.cc#newcode26 cc/managed_tile_state.cc:26: switch(mode_) { nit: space between switch and ( https://codereview.chromium.org/12353003/diff/42001/cc/managed_tile_state.h ...
7 years, 9 months ago (2013-03-12 22:47:02 UTC) #20
enne (OOO)
New patch still looks good and I don't have anything to add. If nduca and ...
7 years, 9 months ago (2013-03-12 22:54:32 UTC) #21
vmpstr
On 2013/03/12 22:47:02, David Reveman wrote: > https://codereview.chromium.org/12353003/diff/42001/cc/managed_tile_state.cc > File cc/managed_tile_state.cc (right): > > https://codereview.chromium.org/12353003/diff/42001/cc/managed_tile_state.cc#newcode26 ...
7 years, 9 months ago (2013-03-12 23:06:30 UTC) #22
reveman
lgtm but we might want to move some of those enums in tile_manager.h to managed_tile_state.h ...
7 years, 9 months ago (2013-03-12 23:24:13 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/12353003/40011
7 years, 9 months ago (2013-03-12 23:44:45 UTC) #24
commit-bot: I haz the power
Failed to trigger a try job on linux_clang HTTP Error 400: Bad Request
7 years, 9 months ago (2013-03-13 00:06:13 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/12353003/63002
7 years, 9 months ago (2013-03-13 00:11:35 UTC) #26
nduca
I am retroactively happylgtm
7 years, 9 months ago (2013-03-13 01:44:21 UTC) #27
commit-bot: I haz the power
7 years, 9 months ago (2013-03-13 05:05:23 UTC) #28
Message was sent while issue was closed.
Change committed as 187784

Powered by Google App Engine
This is Rietveld 408576698