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

Issue 5697052: Making clipping accessor methods virtual in SkCanvas to fix deferred canvas (Closed)

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

Patch Set 1 #

Patch Set 2 : Modifying SkDeferredCanvas to use inherrited SkCanvas to track state #

Patch Set 3 : fixing SkPicture re-entry problem due to clipPathHelper calling accessBitmap #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -71 lines) Patch
M include/core/SkCanvas.h View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M include/utils/SkDeferredCanvas.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 chunks +26 lines, -13 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 2 6 chunks +33 lines, -28 lines 0 comments Download
M tests/CanvasTest.cpp View 1 2 3 chunks +19 lines, -25 lines 0 comments Download

Messages

Total messages: 8
junov1
PTAL
12 years, 4 months ago (2012-02-24 15:46:10 UTC) #1
reed1
I think this is a bad trend for performance -- making query methods on SkCanvas ...
12 years, 4 months ago (2012-02-24 16:07:45 UTC) #2
junov1
Ok, I can do that. In the case of SkDeferredCanvas, that will mean the state ...
12 years, 4 months ago (2012-02-24 18:08:52 UTC) #3
reed1
The 'duplicated' state (which is only a matrix/clip per save) also means DeferredCanvas will be ...
12 years, 4 months ago (2012-02-24 18:46:33 UTC) #4
junov1
Here we go. The latest patch does the trick.
12 years, 4 months ago (2012-02-24 19:06:52 UTC) #5
reed1
lgtm with possible name change: clipLayerBounds actually isn't really about layers per-se. clipRectBounds(...) Indicating that ...
12 years, 4 months ago (2012-02-24 19:49:36 UTC) #6
junov1
Uploaded new patch. Note: There is some diff because I rebased my working copy. The ...
12 years, 4 months ago (2012-02-24 21:30:13 UTC) #7
reed1
12 years, 4 months ago (2012-02-24 22:10:46 UTC) #8
definitely think getDevice is lighter-weight than accessBitmap!

lgtm
Sign in to reply to this message.

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