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

Issue 643363002: cc: Make full-pile invalidations cheap. (Closed)

Created:
6 years, 2 months ago by danakj
Modified:
6 years, 2 months ago
Reviewers:
vmpstr, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Make full-pile invalidations cheap. A PicturePile can be really huge. Normally invalidations should be relatively small anyways. But some times we have to SetNeedsDisplay() to invalidate the whole layer. We can make these cases fast by only iterating through the hash_map to find the recorded tiles that exist and invalidate them. This takes the record time for a 20 million squared layer from over a minute to under a millisecond. R=enne, vmpstr BUG=420944 Committed: https://crrev.com/3813b916c2dfb95440b1501db7ef5a880b8a49f0 Cr-Commit-Position: refs/heads/master@{#299520}

Patch Set 1 #

Total comments: 3

Patch Set 2 : fullinvalidation: . #

Patch Set 3 : fullinvalidation: rebase #

Patch Set 4 : fullinvalidation: dontcommentoutthings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -33 lines) Patch
M cc/resources/picture_pile.cc View 2 3 1 chunk +43 lines, -33 lines 0 comments Download
M cc/resources/picture_pile_unittest.cc View 1 2 chunks +82 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
danakj
wdyt of these tests?
6 years, 2 months ago (2014-10-11 00:18:50 UTC) #1
danakj
In particular, these tests just time out on my z620 in release without the patch ...
6 years, 2 months ago (2014-10-11 00:21:53 UTC) #2
enne (OOO)
https://codereview.chromium.org/643363002/diff/1/cc/resources/picture_pile.cc File cc/resources/picture_pile.cc (right): https://codereview.chromium.org/643363002/diff/1/cc/resources/picture_pile.cc#newcode386 cc/resources/picture_pile.cc:386: updated = it.second.Invalidate(frame_number) || updated; Oh, right. I forgot ...
6 years, 2 months ago (2014-10-11 00:26:34 UTC) #3
danakj
https://codereview.chromium.org/643363002/diff/1/cc/resources/picture_pile_unittest.cc File cc/resources/picture_pile_unittest.cc (right): https://codereview.chromium.org/643363002/diff/1/cc/resources/picture_pile_unittest.cc#newcode424 cc/resources/picture_pile_unittest.cc:424: EXPECT_LT(length.InSeconds(), 5); On 2014/10/11 00:26:33, enne wrote: > Are ...
6 years, 2 months ago (2014-10-11 00:30:22 UTC) #4
danakj
PTAL Added a correctness test.
6 years, 2 months ago (2014-10-11 01:21:45 UTC) #5
danakj
On 2014/10/11 00:26:34, enne wrote: > I have to admit I'm not super keen on ...
6 years, 2 months ago (2014-10-11 01:22:54 UTC) #6
enne (OOO)
lgtm
6 years, 2 months ago (2014-10-13 21:19:16 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/643363002/340001
6 years, 2 months ago (2014-10-14 17:48:02 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:340001)
6 years, 2 months ago (2014-10-14 19:08:51 UTC) #10
commit-bot: I haz the power
6 years, 2 months ago (2014-10-14 19:10:51 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3813b916c2dfb95440b1501db7ef5a880b8a49f0
Cr-Commit-Position: refs/heads/master@{#299520}

Powered by Google App Engine
This is Rietveld 408576698