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

Issue 11704002: cc: Generate tilings at other scales for impl-side painting (Closed)

Created:
7 years, 11 months ago by enne (OOO)
Modified:
7 years, 11 months ago
Reviewers:
danakj, nduca
CC:
chromium-reviews, cc-bugs_chromium.org, danakj, Tom Hudson
Visibility:
Public.

Description

cc: Generate tilings at other scales for impl-side painting This patch adds infrastructure to make it easy for PictureLayerImpl to manage its set of tilings via PictureLayerImpl::ManageTiles(). The main functionality change is to additionally generate a low-res set of tiles (by default 1/8 resolution). Along with generating tilings at different scales, tile priorities now have the correct resolution set on them so that they can be prioritized correctly. There's a few small bugfixes added here as well for correctness, such as making sure that tilings are sorted in the PictureLayerTilingSet from highest to lowest. (This is the order in which tiles will be used.) It also correctly calculates a synthetic contents scale / content bounds for the PictureLayerImpl to support multiple active contents scales. R=nduca@chromium.org BUG=167300 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175927

Patch Set 1 #

Patch Set 2 : Create tilings during pinch #

Total comments: 48

Patch Set 3 : Address review comments #

Total comments: 18

Patch Set 4 : Comments, function names #

Patch Set 5 : Address comments #

Patch Set 6 : Address comments #

Patch Set 7 : s/else // #

Patch Set 8 : std sort, not just any old sort #

Patch Set 9 : std sort, not just any old sort #

Patch Set 10 : Fix signed/unsigned mismatch #

Patch Set 11 : rebase, sort() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -65 lines) Patch
M cc/layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layer_tree_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M cc/layer_tree_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M cc/layer_tree_settings.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/layer_tree_settings.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/picture_layer_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -3 lines 0 comments Download
M cc/picture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +142 lines, -26 lines 0 comments Download
M cc/picture_layer_tiling.h View 1 2 4 chunks +6 lines, -2 lines 0 comments Download
M cc/picture_layer_tiling.cc View 1 2 5 chunks +19 lines, -20 lines 0 comments Download
M cc/picture_layer_tiling_set.h View 1 2 3 3 chunks +17 lines, -3 lines 0 comments Download
M cc/picture_layer_tiling_set.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +77 lines, -9 lines 0 comments Download
M cc/picture_layer_tiling_set_unittest.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M cc/scoped_ptr_vector.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M cc/tile.h View 1 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
enne (OOO)
This patch was getting large, so I just left it at this. It generates low ...
7 years, 11 months ago (2012-12-28 22:45:26 UTC) #1
enne (OOO)
7 years, 11 months ago (2013-01-01 00:18:16 UTC) #2
enne (OOO)
danakj: Do you have time to take a look at this too, since it's in ...
7 years, 11 months ago (2013-01-07 21:10:37 UTC) #3
danakj
Did you consider IDEAL_RES and LOW_RES instead of HIGH and LOW? It took a bit ...
7 years, 11 months ago (2013-01-07 22:35:56 UTC) #4
enne (OOO)
On 2013/01/07 22:35:56, danakj wrote: > Did you consider IDEAL_RES and LOW_RES instead of HIGH ...
7 years, 11 months ago (2013-01-08 01:08:00 UTC) #5
danakj
https://codereview.chromium.org/11704002/diff/4001/cc/picture_layer_impl.cc File cc/picture_layer_impl.cc (right): https://codereview.chromium.org/11704002/diff/4001/cc/picture_layer_impl.cc#newcode147 cc/picture_layer_impl.cc:147: CleanUpUnusedTilings(seen_tilings); On 2013/01/08 01:08:00, enne wrote: > On 2013/01/07 ...
7 years, 11 months ago (2013-01-08 23:27:16 UTC) #6
enne (OOO)
https://codereview.chromium.org/11704002/diff/4001/cc/picture_layer_tiling_set.cc File cc/picture_layer_tiling_set.cc (right): https://codereview.chromium.org/11704002/diff/4001/cc/picture_layer_tiling_set.cc#newcode166 cc/picture_layer_tiling_set.cc:166: // Prefer hi-res tiles, but prefer the least hi-res ...
7 years, 11 months ago (2013-01-08 23:54:38 UTC) #7
danakj
Some nitty things, and one real question https://codereview.chromium.org/11704002/diff/12001/cc/picture_layer_impl.cc File cc/picture_layer_impl.cc (right): https://codereview.chromium.org/11704002/diff/12001/cc/picture_layer_impl.cc#newcode337 cc/picture_layer_impl.cc:337: // Remove ...
7 years, 11 months ago (2013-01-09 00:22:49 UTC) #8
enne (OOO)
https://codereview.chromium.org/11704002/diff/12001/cc/picture_layer_impl.cc File cc/picture_layer_impl.cc (right): https://codereview.chromium.org/11704002/diff/12001/cc/picture_layer_impl.cc#newcode337 cc/picture_layer_impl.cc:337: // Remove any tilings that don't exactly match the ...
7 years, 11 months ago (2013-01-09 00:38:37 UTC) #9
danakj
https://codereview.chromium.org/11704002/diff/12001/cc/picture_layer_impl.cc File cc/picture_layer_impl.cc (right): https://codereview.chromium.org/11704002/diff/12001/cc/picture_layer_impl.cc#newcode348 cc/picture_layer_impl.cc:348: else if (tiling->contents_scale() == low_res_contents_scale) On 2013/01/09 00:38:38, enne ...
7 years, 11 months ago (2013-01-09 00:40:20 UTC) #10
danakj
LGTM
7 years, 11 months ago (2013-01-09 00:41:42 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/11704002/12004
7 years, 11 months ago (2013-01-09 00:54:25 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-09 01:15:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/11704002/15022
7 years, 11 months ago (2013-01-09 01:23:51 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-09 02:26:08 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/11704002/17004
7 years, 11 months ago (2013-01-09 02:36:22 UTC) #16
commit-bot: I haz the power
Failed to apply patch for cc/picture_layer_tiling_set.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-09 07:51:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/11704002/20023
7 years, 11 months ago (2013-01-09 17:20:05 UTC) #18
commit-bot: I haz the power
7 years, 11 months ago (2013-01-09 23:54:35 UTC) #19
Message was sent while issue was closed.
Change committed as 175927

Powered by Google App Engine
This is Rietveld 408576698