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

Issue 16160020: Compact the clipstack for kReplace_Op'd geometry (Closed)

Created:
7 years, 6 months ago by fs
Modified:
7 years, 6 months ago
Reviewers:
robertphillips
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Compact the clipstack for kReplace_Op'd geometry When adding a clip rect or clip path to the stack with the kReplace_Op operation, remove all previous elements within the same save frame (elements with fSaveCount equal to the current fSaveCount of the stack). This prevents unbounded growth of the clipstack for long-lived instances that gets reused. Addresses https://code.google.com/p/skia/issues/detail?id=748 Committed: http://code.google.com/p/skia/source/detail?r=9502

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -43 lines) Patch
M include/core/SkClipStack.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/core/SkClipStack.cpp View 1 3 chunks +57 lines, -43 lines 0 comments Download
M tests/ClipStackTest.cpp View 2 chunks +103 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
fs
7 years, 6 months ago (2013-06-10 15:57:35 UTC) #1
robertphillips
lgtm + 2 nits https://codereview.chromium.org/16160020/diff/1/src/core/SkClipStack.cpp File src/core/SkClipStack.cpp (right): https://codereview.chromium.org/16160020/diff/1/src/core/SkClipStack.cpp#newcode534 src/core/SkClipStack.cpp:534: if (NULL != element) { ...
7 years, 6 months ago (2013-06-10 17:10:33 UTC) #2
fs
7 years, 6 months ago (2013-06-11 07:06:29 UTC) #3
fs
On 2013/06/11 07:06:29, fs wrote: @robertphillips: Could you help getting this committed when it's fully ...
7 years, 6 months ago (2013-06-11 07:13:43 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/fs@opera.com/16160020/3002
7 years, 6 months ago (2013-06-11 10:53:15 UTC) #5
commit-bot: I haz the power
7 years, 6 months ago (2013-06-11 11:01:50 UTC) #6
Message was sent while issue was closed.
Change committed as 9502

Powered by Google App Engine
This is Rietveld 408576698