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

Issue 504513002: cc: Fix CanRaster dcheck failures ONCE AND FOR ALL. (Closed)

Created:
6 years, 4 months ago by danakj
Modified:
6 years, 3 months ago
Reviewers:
enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, piman, reveman, vmpstr
Project:
chromium
Visibility:
Public.

Description

cc: Fix CanRaster dcheck failures ONCE AND FOR ALL. When a PicturePile grows along either axis, the tiles on the edge where it grew are dropped if any new pixels are added to their recordings. This means that we need to invalidate them to inform the impl side about the recording being dropped. However, if we're going to re-record the tile (it intersects the interest_rect), then there's no need to invalidate it as the old recorded pixels remain valid. Previously we made the assumption that when a PicturePile resized, the interest rect's center would be to the left and above the old edge of the pile. However, the interest rect can move at the same time as the pile is resized, and it can live anywhere with respect to the recording tiles being dropped. So we invalidate everything inside the row/column of tiles that were dropped that is outside of the interest rect by invalidating on all four sides of the interest rect, but clamping the resulting invalidation rects to within the dropped tiles row/column. R=enne BUG=386998 Committed: https://crrev.com/d27cb086ffcbfdc4c3f5b1d1d483b28dff5bd26c Cr-Commit-Position: refs/heads/master@{#291762}

Patch Set 1 #

Patch Set 2 : canraster: . #

Patch Set 3 : canraster: picture #

Patch Set 4 : canraster: . #

Patch Set 5 : canraster: precision #

Patch Set 6 : canraster: ONCEANDFORALL #

Total comments: 12

Patch Set 7 : canraster: morebetterpix #

Patch Set 8 : canraster: evenbetter #

Total comments: 1

Patch Set 9 : canraster: typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+367 lines, -69 lines) Patch
M cc/resources/picture_pile.cc View 1 2 3 4 5 6 7 8 1 chunk +133 lines, -24 lines 0 comments Download
M cc/resources/picture_pile_unittest.cc View 1 2 3 4 5 16 chunks +233 lines, -45 lines 0 comments Download
M cc/resources/tile.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
danakj
6 years, 4 months ago (2014-08-22 23:51:02 UTC) #1
danakj
http://i.imgur.com/gHcGr.jpg
6 years, 4 months ago (2014-08-22 23:51:36 UTC) #2
enne (OOO)
On 2014/08/22 at 23:51:36, danakj wrote: > http://i.imgur.com/gHcGr.jpg http://i.imgur.com/SNkJkzR.gif
6 years, 4 months ago (2014-08-23 00:08:53 UTC) #3
danakj
On Fri, Aug 22, 2014 at 8:08 PM, <enne@chromium.org> wrote: > On 2014/08/22 at 23:51:36, ...
6 years, 4 months ago (2014-08-23 00:35:08 UTC) #4
danakj
Ok I had dropped the "exposed rect" which was causing test failures. You can see ...
6 years, 4 months ago (2014-08-24 16:16:55 UTC) #5
danakj
Fixed the test by using TileAt(0,0) instead of AllTilesForTesting() and then dropping everything but the ...
6 years, 3 months ago (2014-08-25 17:04:56 UTC) #6
danakj
Oh, wrong CL for that comment.
6 years, 3 months ago (2014-08-25 17:05:12 UTC) #7
enne (OOO)
https://codereview.chromium.org/504513002/diff/160001/cc/resources/picture_pile.cc File cc/resources/picture_pile.cc (right): https://codereview.chromium.org/504513002/diff/160001/cc/resources/picture_pile.cc#newcode235 cc/resources/picture_pile.cc:235: // mmppssvvyybbeeh|h . If I'm reading this diagram correctly, ...
6 years, 3 months ago (2014-08-25 17:48:47 UTC) #8
danakj
https://codereview.chromium.org/504513002/diff/160001/cc/resources/picture_pile.cc File cc/resources/picture_pile.cc (right): https://codereview.chromium.org/504513002/diff/160001/cc/resources/picture_pile.cc#newcode235 cc/resources/picture_pile.cc:235: // mmppssvvyybbeeh|h . On 2014/08/25 17:48:47, enne wrote: > ...
6 years, 3 months ago (2014-08-25 18:03:44 UTC) #9
enne (OOO)
https://codereview.chromium.org/504513002/diff/160001/cc/resources/picture_pile.cc File cc/resources/picture_pile.cc (right): https://codereview.chromium.org/504513002/diff/160001/cc/resources/picture_pile.cc#newcode235 cc/resources/picture_pile.cc:235: // mmppssvvyybbeeh|h . On 2014/08/25 18:03:39, danakj wrote: > ...
6 years, 3 months ago (2014-08-25 18:08:13 UTC) #10
danakj
https://codereview.chromium.org/504513002/diff/160001/cc/resources/picture_pile.cc File cc/resources/picture_pile.cc (right): https://codereview.chromium.org/504513002/diff/160001/cc/resources/picture_pile.cc#newcode235 cc/resources/picture_pile.cc:235: // mmppssvvyybbeeh|h . On 2014/08/25 18:08:13, enne wrote: > ...
6 years, 3 months ago (2014-08-25 18:13:35 UTC) #11
enne (OOO)
https://codereview.chromium.org/504513002/diff/160001/cc/resources/picture_pile.cc File cc/resources/picture_pile.cc (right): https://codereview.chromium.org/504513002/diff/160001/cc/resources/picture_pile.cc#newcode253 cc/resources/picture_pile.cc:253: // |===>| INTEREST RECT | | On 2014/08/25 18:13:35, ...
6 years, 3 months ago (2014-08-25 18:24:17 UTC) #12
danakj
https://codereview.chromium.org/504513002/diff/160001/cc/resources/picture_pile.cc File cc/resources/picture_pile.cc (right): https://codereview.chromium.org/504513002/diff/160001/cc/resources/picture_pile.cc#newcode253 cc/resources/picture_pile.cc:253: // |===>| INTEREST RECT | | On 2014/08/25 18:24:17, ...
6 years, 3 months ago (2014-08-25 18:29:55 UTC) #13
enne (OOO)
AHA. Thank you, that makes a lot more sense. I think it would be more ...
6 years, 3 months ago (2014-08-25 19:00:43 UTC) #14
danakj
On Mon, Aug 25, 2014 at 3:00 PM, <enne@chromium.org> wrote: > AHA. Thank you, that ...
6 years, 3 months ago (2014-08-25 19:05:12 UTC) #15
danakj
I've updated the description and pictures, PTAL
6 years, 3 months ago (2014-08-25 19:58:23 UTC) #16
enne (OOO)
lgtm Thanks for taking the time to explain this to me and to make awesome ...
6 years, 3 months ago (2014-08-25 20:06:16 UTC) #17
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 3 months ago (2014-08-25 20:06:49 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/504513002/240001
6 years, 3 months ago (2014-08-25 20:07:42 UTC) #19
commit-bot: I haz the power
Committed patchset #9 (240001) as 3c429b26bd04bb2a69694fa8c8e30553afc664d6
6 years, 3 months ago (2014-08-25 21:21:57 UTC) #20
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:37:36 UTC) #21
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/d27cb086ffcbfdc4c3f5b1d1d483b28dff5bd26c
Cr-Commit-Position: refs/heads/master@{#291762}

Powered by Google App Engine
This is Rietveld 408576698