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

Issue 11299324: Make PicturePile pile. (Closed)

Created:
8 years ago by aelias_OOO_until_Jul13
Modified:
8 years ago
CC:
chromium-reviews, cc-bugs_chromium.org, nduca
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Make PicturePile pile. This follows a similar policy as Android browser: - If an invalidate only intersects the base plus at most one non-base SkPicture, then it creates a new SkPicture of that size. - If an invalidate intersects two or more non-base SkPictures, then a new SkPicture is created at the top of the pile, sized to the union of the invalidate plus the bounds of all the intersecting pictures. - Whenever new picture's area fully contains an existing picture, that old picture is destroyed. - If an SkPicture's area would be >70% of the base, the pile is destroyed and the base SkPicture is recreated. During the invalidate pass, invalidated pictures are represented as Pictures with a size but no recording. Then all the blank pictures are filled in at the end of the Update(). BUG=163429 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170917

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix style nits #

Patch Set 3 : Fix signed/unsigned mismatch warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -53 lines) Patch
M cc/picture.h View 1 chunk +7 lines, -4 lines 0 comments Download
M cc/picture.cc View 4 chunks +17 lines, -17 lines 0 comments Download
M cc/picture_pile.h View 2 chunks +9 lines, -1 line 0 comments Download
M cc/picture_pile.cc View 1 2 2 chunks +68 lines, -23 lines 0 comments Download
M cc/picture_pile_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/picture_pile_impl.cc View 2 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
aelias_OOO_until_Jul13
Hi Vangelis, I haven't tested this logic fully works yet, but it's not obviously more ...
8 years ago (2012-12-04 03:23:59 UTC) #1
enne (OOO)
lgtm https://codereview.chromium.org/11299324/diff/1/cc/picture_pile.cc File cc/picture_pile.cc (right): https://codereview.chromium.org/11299324/diff/1/cc/picture_pile.cc#newcode11 cc/picture_pile.cc:11: const float kResetThreshold = 0.7f; Can you add ...
8 years ago (2012-12-04 04:11:09 UTC) #2
aelias_OOO_until_Jul13
I realized I had oversimplified Android browser's piling logic. I introduced a new line "if ...
8 years ago (2012-12-04 04:44:34 UTC) #3
enne (OOO)
Still lgtm.
8 years ago (2012-12-04 05:13:35 UTC) #4
nduca
piles of lgtm from me too
8 years ago (2012-12-04 05:25:35 UTC) #5
Vangelis Kokkevis
lgtm as well!
8 years ago (2012-12-04 07:05:41 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/11299324/9001
8 years ago (2012-12-04 08:23:43 UTC) #7
commit-bot: I haz the power
8 years ago (2012-12-04 09:51:21 UTC) #8
Message was sent while issue was closed.
Change committed as 170917

Powered by Google App Engine
This is Rietveld 408576698