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

Issue 12221129: cc: Recreate small layer tiles when size changes (Closed)

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

Description

cc: Recreate small layer tiles when size changes This is a follow-up bugfix to r180264, which added support for using smaller tiles to save memory if the layer size was smaller than a tile size. Unfortunately, this only worked if the layer size never changed as it cleared all the tiles and didn't recreate them. This new patch recreates tiles for the entire layer after clearing the old ones. If the tile size is changing, it is only going to happen for very small layers and small numbers of tiles, so this will never in practice be an expensive operation. R=danakj@chromium.org BUG=173945 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181911

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M cc/picture_layer_tiling.cc View 1 chunk +2 lines, -0 lines 4 comments Download

Messages

Total messages: 9 (0 generated)
enne (OOO)
7 years, 10 months ago (2013-02-12 01:25:02 UTC) #1
danakj
https://codereview.chromium.org/12221129/diff/1/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/12221129/diff/1/cc/picture_layer_tiling.cc#newcode95 cc/picture_layer_tiling.cc:95: CreateTilesFromLayerRect(gfx::Rect(layer_bounds_)); What if you set old_layer_bounds to empty here? ...
7 years, 10 months ago (2013-02-12 01:31:20 UTC) #2
enne (OOO)
https://codereview.chromium.org/12221129/diff/1/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/12221129/diff/1/cc/picture_layer_tiling.cc#newcode95 cc/picture_layer_tiling.cc:95: CreateTilesFromLayerRect(gfx::Rect(layer_bounds_)); On 2013/02/12 01:31:20, danakj wrote: > What if ...
7 years, 10 months ago (2013-02-12 01:34:39 UTC) #3
danakj
https://codereview.chromium.org/12221129/diff/1/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/12221129/diff/1/cc/picture_layer_tiling.cc#newcode95 cc/picture_layer_tiling.cc:95: CreateTilesFromLayerRect(gfx::Rect(layer_bounds_)); On 2013/02/12 01:34:39, enne wrote: > On 2013/02/12 ...
7 years, 10 months ago (2013-02-12 01:36:24 UTC) #4
danakj
https://codereview.chromium.org/12221129/diff/1/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/12221129/diff/1/cc/picture_layer_tiling.cc#newcode95 cc/picture_layer_tiling.cc:95: CreateTilesFromLayerRect(gfx::Rect(layer_bounds_)); On 2013/02/12 01:36:24, danakj wrote: > On 2013/02/12 ...
7 years, 10 months ago (2013-02-12 01:37:56 UTC) #5
enne (OOO)
On 2013/02/12 01:36:24, danakj wrote: > https://codereview.chromium.org/12221129/diff/1/cc/picture_layer_tiling.cc > File cc/picture_layer_tiling.cc (right): > > https://codereview.chromium.org/12221129/diff/1/cc/picture_layer_tiling.cc#newcode95 > ...
7 years, 10 months ago (2013-02-12 01:43:18 UTC) #6
danakj
On Mon, Feb 11, 2013 at 5:43 PM, <enne@chromium.org> wrote: > On 2013/02/12 01:36:24, danakj ...
7 years, 10 months ago (2013-02-12 01:57:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/12221129/1
7 years, 10 months ago (2013-02-12 02:01:37 UTC) #8
commit-bot: I haz the power
7 years, 10 months ago (2013-02-12 12:51:34 UTC) #9
Message was sent while issue was closed.
Change committed as 181911

Powered by Google App Engine
This is Rietveld 408576698