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

Issue 605773004: CC: Tile-size cleanup. (Closed)

Created:
6 years, 2 months ago by epenner
Modified:
6 years, 2 months ago
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

CC: Tile-size cleanup. Two tile-size cleanups in this patch: - Fixes a bug where the minimum tile-height for GPU-raster pages is 512 until any amount of zoom is applied (all layers we being considered 'long-and-skinny' by the old logic). - Reserves default_tile_size/max_untiled_layer_size for software-raster. GPU-raster now computes both of these, leaving only tile-grid-size which re-uses the setting. That will be removed in my next patch. BUG=365877 Committed: https://crrev.com/9ee9c855721329f1cccacedc66ab9690ee9440f8 Cr-Commit-Position: refs/heads/master@{#299027}

Patch Set 1 : #

Total comments: 3

Patch Set 2 : Match code/comment. #

Patch Set 3 : Add min tile height. #

Patch Set 4 : Remove tile-grid-size changes. #

Patch Set 5 : Add tests. #

Total comments: 4

Patch Set 6 : Address feedback. #

Patch Set 7 : Rebase. #

Total comments: 5

Patch Set 8 : Rewrite. #

Patch Set 9 : Comments. #

Patch Set 10 : Cleanup. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -38 lines) Patch
M cc/layers/picture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +63 lines, -38 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +68 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (14 generated)
epenner
Ptal. I had some cycles to wrap up outstanding bugs. I've taken the remaining suggestions ...
6 years, 2 months ago (2014-10-07 02:11:16 UTC) #2
danakj
> Tile-grid is in a different coordinate space, so it > doesn't really make sense ...
6 years, 2 months ago (2014-10-07 16:06:47 UTC) #5
enne (OOO)
> Then we can just remove the default-tile-size settings someday > when everything is GPU-rastered. ...
6 years, 2 months ago (2014-10-07 17:38:19 UTC) #6
vmpstr
https://codereview.chromium.org/605773004/diff/40001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/605773004/diff/40001/cc/layers/picture_layer_impl.cc#newcode685 cc/layers/picture_layer_impl.cc:685: int height = layer_tree_impl()->device_viewport_size().height() / 4; Can you do ...
6 years, 2 months ago (2014-10-07 17:49:47 UTC) #7
ernstm
We should determine the default tile grid size by running benchmarks with different settings. https://codereview.chromium.org/605773004/diff/40001/cc/layers/picture_layer_impl.cc ...
6 years, 2 months ago (2014-10-07 18:17:32 UTC) #8
epennerAtGoogle
Regarding tile-grid size: Unless we calculate what the scale will end up being, and apply ...
6 years, 2 months ago (2014-10-07 20:37:45 UTC) #9
danakj
On Tue, Oct 7, 2014 at 4:37 PM, <epenner@google.com> wrote: > Regarding tile-grid size: > ...
6 years, 2 months ago (2014-10-07 20:46:21 UTC) #10
epennerAtGoogle
> I support making it tunable, but I don't think we should change the tunable ...
6 years, 2 months ago (2014-10-07 21:16:09 UTC) #11
ernstm
> Regarding rounding up gpu-raster tile-size: > > How about max(256, viewport_height/4). 256 is the ...
6 years, 2 months ago (2014-10-07 22:47:28 UTC) #12
epennerAtGoogle
On 2014/10/07 22:47:28, ernstm wrote: > > Regarding rounding up gpu-raster tile-size: > > > ...
6 years, 2 months ago (2014-10-08 01:10:26 UTC) #13
epennerAtGoogle
Oh, one last thing, I made the minimum height 128 rather than 256 to keep ...
6 years, 2 months ago (2014-10-08 02:28:20 UTC) #14
danakj
> - Reserves default_tile_size/max_untiled_layer_size for You'll need to remove that from the description. Removing myself ...
6 years, 2 months ago (2014-10-08 17:10:02 UTC) #16
epennerAtGoogle
> > - Reserves default_tile_size/max_untiled_layer_size for > You'll need to remove that from the description. ...
6 years, 2 months ago (2014-10-08 23:08:05 UTC) #18
vmpstr
Overall I think this looks OK from the correctness perspective. From the code perspective it's ...
6 years, 2 months ago (2014-10-08 23:30:29 UTC) #19
epennerAtGoogle
Regarding complexity, I'm up for simplifying it in this patch if you have any thoughts ...
6 years, 2 months ago (2014-10-09 00:29:43 UTC) #25
ernstm
On 2014/10/08 23:08:05, epennerAtGoogle wrote: > > > - Reserves default_tile_size/max_untiled_layer_size for > > You'll ...
6 years, 2 months ago (2014-10-09 01:36:30 UTC) #26
vmpstr
https://codereview.chromium.org/605773004/diff/150003/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/605773004/diff/150003/cc/layers/picture_layer_impl.cc#newcode689 cc/layers/picture_layer_impl.cc:689: if (use_gpu) { For complexity thing, maybe just have ...
6 years, 2 months ago (2014-10-09 16:35:43 UTC) #27
epenner
https://codereview.chromium.org/605773004/diff/150003/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/605773004/diff/150003/cc/layers/picture_layer_impl.cc#newcode689 cc/layers/picture_layer_impl.cc:689: if (use_gpu) { On 2014/10/09 16:35:43, vmpstr wrote: > ...
6 years, 2 months ago (2014-10-09 18:36:33 UTC) #28
vmpstr
https://codereview.chromium.org/605773004/diff/150003/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/605773004/diff/150003/cc/layers/picture_layer_impl.cc#newcode689 cc/layers/picture_layer_impl.cc:689: if (use_gpu) { On 2014/10/09 18:36:33, epenner wrote: > ...
6 years, 2 months ago (2014-10-09 18:38:18 UTC) #29
epenner
> Fair enough. That's why I'm not really sure how to make it too much ...
6 years, 2 months ago (2014-10-09 20:13:56 UTC) #30
vmpstr
I think that looks pretty good! Thanks. It's lgtm from me, but please ensure that ...
6 years, 2 months ago (2014-10-09 20:30:15 UTC) #31
ernstm
On 2014/10/09 20:30:15, vmpstr wrote: > I think that looks pretty good! Thanks. It's lgtm ...
6 years, 2 months ago (2014-10-09 21:48:40 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/605773004/420001
6 years, 2 months ago (2014-10-09 23:23:27 UTC) #37
commit-bot: I haz the power
Committed patchset #10 (id:420001)
6 years, 2 months ago (2014-10-10 00:46:40 UTC) #38
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 00:47:31 UTC) #39
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/9ee9c855721329f1cccacedc66ab9690ee9440f8
Cr-Commit-Position: refs/heads/master@{#299027}

Powered by Google App Engine
This is Rietveld 408576698