Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(280)

Issue 7301054: Adding protected API in SkCanvas to disable use of SkRasterClip

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by junov1
Modified:
12 years, 4 months ago
Reviewers:
robertphillips, reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Adding protected API in SkCanvas to disable use of SkRasterClip This CL adds SkCanvas::disableRasterClip which can be invoked by derived classes that wish to turn off complex clip region construction. When in this mode, the canvas only tracks the bounds of the clip and getTotalClip always returns a rectangular region corresponding to conservative bounds. Motivation: replace the current strategy used by the kUsePathBoundsForClip_RecordingFlag optimization in SkPicture, which has caveats. BUG=https://code.google.com/p/chromium/issues/detail?id=174367 TEST=covered by gm+render_pictures

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -49 lines) Patch
M include/core/SkCanvas.h View 1 2 3 4 5 6 3 chunks +22 lines, -2 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 21 chunks +148 lines, -36 lines 0 comments Download
M src/core/SkClipStack.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkPictureRecord.cpp View 3 chunks +6 lines, -10 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 3 2 chunks +37 lines, -0 lines 0 comments Download

Messages

Total messages: 8
junov1
PTAL This CL passes all GMs I will add unit tests to cover use cases ...
12 years, 4 months ago (2013-02-06 19:41:39 UTC) #1
junov1
12 years, 4 months ago (2013-02-06 19:41:51 UTC) #2
junov1
12 years, 4 months ago (2013-02-06 21:21:31 UTC) #3
junov1
New Patch. - Added unit test that demonstrates bug fixed by this patch - Fixed ...
12 years, 4 months ago (2013-02-06 22:15:11 UTC) #4
reed1
I will have more inline questions no doubt, but here are some. Meta: this looks ...
12 years, 4 months ago (2013-02-08 20:12:42 UTC) #5
junov1
On 2013/02/08 20:12:42, reed1 wrote: > I will have more inline questions no doubt, but ...
12 years, 4 months ago (2013-02-08 20:33:46 UTC) #6
junov1
https://codereview.appspot.com/7301054/diff/13002/include/core/SkCanvas.h#newcode1083 > include/core/SkCanvas.h:1083: RasterClipMode fRasterClipMode; > What is this new method? > How does it ...
12 years, 4 months ago (2013-02-08 21:26:01 UTC) #7
junov1
12 years, 4 months ago (2013-02-11 14:47:30 UTC) #8
Patch.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b