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

Issue 5646057: Adding API and unit testing for deferred canvas clearing/purging (Closed)

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

Patch Set 1 #

Total comments: 7

Patch Set 2 : review iteration #

Patch Set 3 : forgot to initialize fFirstSavedLayerIndex #

Total comments: 3

Patch Set 4 : style corrections #

Patch Set 5 : corrections #

Patch Set 6 : kNoSavedLayerIndex #

Patch Set 7 : kNoSavedLayerIndex take 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -40 lines) Patch
M include/core/SkCanvas.h View 1 chunk +1 line, -1 line 0 comments Download
M include/utils/SkDeferredCanvas.h View 2 chunks +8 lines, -2 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 4 5 6 4 chunks +14 lines, -0 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 10 chunks +51 lines, -37 lines 0 comments Download
M tests/DeferredCanvasTest.cpp View 2 chunks +127 lines, -0 lines 0 comments Download

Messages

Total messages: 9
junov1
http://codereview.appspot.com/5646057/diff/1/include/core/SkCanvas.h File include/core/SkCanvas.h (right): http://codereview.appspot.com/5646057/diff/1/include/core/SkCanvas.h#newcode298 include/core/SkCanvas.h:298: virtual bool isDrawingToLayer() const; Incidental discovery thanks to new ...
12 years, 9 months ago (2012-02-08 22:07:53 UTC) #1
reed1
Can you just save the index (getsavecount) of the first saveLayer, and in restore, just ...
12 years, 9 months ago (2012-02-09 13:16:17 UTC) #2
junov1
On 2012/02/09 13:16:17, reed1 wrote: > Can you just save the index (getsavecount) of the ...
12 years, 9 months ago (2012-02-09 14:40:07 UTC) #3
reed1
Don't know if we already have unittests for picture recording, but should be easy to ...
12 years, 9 months ago (2012-02-09 15:15:44 UTC) #4
junov1
On 2012/02/09 15:15:44, reed1 wrote: > Don't know if we already have unittests for picture ...
12 years, 9 months ago (2012-02-09 15:44:12 UTC) #5
reed1
my specific ask for a unittest is around (the now virtual) isDrawingToLayer, since that will ...
12 years, 9 months ago (2012-02-10 13:20:48 UTC) #6
junov1
On 2012/02/10 13:20:48, reed1 wrote: > my specific ask for a unittest is around (the ...
12 years, 9 months ago (2012-02-13 15:53:28 UTC) #7
reed1
sure lgtm I think the explicit test is pretty trivial. SkCanvas* canvas = picture.beginRecording(...); assert(!canvas->isDrawingToLayer()); ...
12 years, 9 months ago (2012-02-13 18:04:55 UTC) #8
junov1
12 years, 8 months ago (2012-02-14 15:23:25 UTC) #9
Closed at r3181
Sign in to reply to this message.

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