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

Issue 881083002: cc: Clean up tilings in UpdateTiles as well as in AppendQuads. (Closed)

Created:
5 years, 10 months ago by vmpstr
Modified:
5 years, 10 months ago
Reviewers:
danakj
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Clean up tilings in UpdateTiles as well as in AppendQuads. Sometimes we get into situations where we get frequent UpdateTiles, but no AppendQuads. As a result we can start accumulating tilings (during pinch zoom for example), but we never free any of them, since the code to free tilings happens only during AppendQuads. This patch remedies this by ensuring that if AppendQuads doesn't clean up the tilings, and we've added some since last time we ran UpdateTiles, we clean them up. R=danakj BUG=452304 Committed: https://crrev.com/5c115e7db2f2845b5fe4a687dc33d5f2340b5d60 Cr-Commit-Position: refs/heads/master@{#313428}

Patch Set 1 #

Patch Set 2 : undelete comment #

Patch Set 3 : comment #

Total comments: 6

Patch Set 4 : review #

Total comments: 2

Patch Set 5 : nobool #

Total comments: 2

Patch Set 6 : remove dup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -7 lines) Patch
M cc/layers/picture_layer_impl.h View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 6 chunks +15 lines, -6 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 10 chunks +35 lines, -0 lines 0 comments Download
M cc/test/fake_picture_layer_impl.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
vmpstr
Please take a look.
5 years, 10 months ago (2015-01-27 21:34:48 UTC) #1
danakj
https://codereview.chromium.org/881083002/diff/40001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/881083002/diff/40001/cc/layers/picture_layer_impl.cc#newcode459 cc/layers/picture_layer_impl.cc:459: // a chance to do so, as inidicated by ...
5 years, 10 months ago (2015-01-27 21:56:59 UTC) #2
vmpstr
PTAL https://codereview.chromium.org/881083002/diff/40001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/881083002/diff/40001/cc/layers/picture_layer_impl.cc#newcode459 cc/layers/picture_layer_impl.cc:459: // a chance to do so, as inidicated ...
5 years, 10 months ago (2015-01-27 22:53:59 UTC) #3
danakj
https://codereview.chromium.org/881083002/diff/60001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/881083002/diff/60001/cc/layers/picture_layer_impl.cc#newcode451 cc/layers/picture_layer_impl.cc:451: // active layer. Additionally, only clean up if AppendQuads ...
5 years, 10 months ago (2015-01-27 23:02:29 UTC) #4
vmpstr
Please take a look. I removed the bool, since it was just an optimization. If ...
5 years, 10 months ago (2015-01-27 23:14:41 UTC) #5
danakj
LGTM https://codereview.chromium.org/881083002/diff/80001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/881083002/diff/80001/cc/layers/picture_layer_impl_unittest.cc#newcode3648 cc/layers/picture_layer_impl_unittest.cc:3648: active_layer_->MarkAllTilingsUsed(); twice just for sure?
5 years, 10 months ago (2015-01-28 00:12:21 UTC) #6
vmpstr
https://codereview.chromium.org/881083002/diff/80001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/881083002/diff/80001/cc/layers/picture_layer_impl_unittest.cc#newcode3648 cc/layers/picture_layer_impl_unittest.cc:3648: active_layer_->MarkAllTilingsUsed(); On 2015/01/28 00:12:20, danakj wrote: > twice just ...
5 years, 10 months ago (2015-01-28 00:16:07 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/881083002/100001
5 years, 10 months ago (2015-01-28 00:16:49 UTC) #9
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-01-28 04:09:57 UTC) #10
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 04:11:14 UTC) #11
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5c115e7db2f2845b5fe4a687dc33d5f2340b5d60
Cr-Commit-Position: refs/heads/master@{#313428}

Powered by Google App Engine
This is Rietveld 408576698