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

Issue 6203067: Proposed plumbing to propagate save & restore (Closed)

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

Description

Given my current understanding of the Skia architecture here is a rough outline of how I would go about propagating SkCanvas' save & restore down to the ClipMaskManager. Is this even anywhere close to right?

Patch Set 1 #

Total comments: 2

Patch Set 2 : Renamed save/restore methods for GrContext & below #

Total comments: 2

Patch Set 3 : Added NULL device check in save/restore loops #

Total comments: 1

Patch Set 4 : renamed save/restore to postSave/preRestore #

Total comments: 2

Patch Set 5 : Added explicatory comment #

Total comments: 2

Patch Set 6 : made SkDevice's postSave/preRestore methods private #

Total comments: 4

Patch Set 7 : fixed comments & overridden function bug #

Total comments: 1

Patch Set 8 : renamed push/popClip & changed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -11 lines) Patch
M include/core/SkDevice.h View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
M include/gpu/GrContext.h View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M include/gpu/SkGpuDevice.h View 1 2 3 4 5 6 7 1 chunk +9 lines, -2 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 2 chunks +16 lines, -0 lines 0 comments Download
M src/gpu/GrClipMaskManager.h View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M src/gpu/GrGpu.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 19
robertphillips
12 years, 5 months ago (2012-05-11 13:33:02 UTC) #1
bsalomon
On 2012/05/11 13:33:02, robertphillips wrote: At the GrContext level and below we are treating this ...
12 years, 5 months ago (2012-05-11 14:19:56 UTC) #2
robertphillips
Done.
12 years, 5 months ago (2012-05-11 15:27:59 UTC) #3
bsalomon
Sorry I meant to send this comment with my message from patchset 1 but I ...
12 years, 5 months ago (2012-05-11 15:31:35 UTC) #4
reed1
http://codereview.appspot.com/6203067/diff/4001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): http://codereview.appspot.com/6203067/diff/4001/src/core/SkCanvas.cpp#newcode691 src/core/SkCanvas.cpp:691: I will look further, but are we guaranteed that ...
12 years, 5 months ago (2012-05-11 21:28:20 UTC) #5
robertphillips
I had overlooked the NULL device check in SkDrawIter's next method - fixed now. http://codereview.appspot.com/6203067/diff/4001/src/core/SkCanvas.cpp ...
12 years, 4 months ago (2012-05-14 14:01:45 UTC) #6
robertphillips
http://codereview.appspot.com/6203067/diff/1/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): http://codereview.appspot.com/6203067/diff/1/src/core/SkCanvas.cpp#newcode692 src/core/SkCanvas.cpp:692: for (DeviceCM* curLayer = fMCRec->fTopLayer; Done. Renamed postSave & ...
12 years, 4 months ago (2012-05-16 18:55:44 UTC) #7
reed1
http://codereview.appspot.com/6203067/diff/7002/include/core/SkDevice.h File include/core/SkDevice.h (left): http://codereview.appspot.com/6203067/diff/7002/include/core/SkDevice.h#oldcode345 include/core/SkDevice.h:345: Lets have some dox: when is it called, what ...
12 years, 4 months ago (2012-05-16 19:10:13 UTC) #8
robertphillips
http://codereview.appspot.com/6203067/diff/7002/include/core/SkDevice.h File include/core/SkDevice.h (left): http://codereview.appspot.com/6203067/diff/7002/include/core/SkDevice.h#oldcode345 include/core/SkDevice.h:345: On 2012/05/16 19:10:14, reed1 wrote: > Lets have some ...
12 years, 4 months ago (2012-05-16 19:26:14 UTC) #9
reed1
non-gpu part: lgtm
12 years, 4 months ago (2012-05-16 19:28:26 UTC) #10
reed1
http://codereview.appspot.com/6203067/diff/11/include/core/SkDevice.h File include/core/SkDevice.h (right): http://codereview.appspot.com/6203067/diff/11/include/core/SkDevice.h#newcode345 include/core/SkDevice.h:345: Can these be protected?
12 years, 4 months ago (2012-05-16 19:30:38 UTC) #11
robertphillips
http://codereview.appspot.com/6203067/diff/11/include/core/SkDevice.h File include/core/SkDevice.h (right): http://codereview.appspot.com/6203067/diff/11/include/core/SkDevice.h#newcode345 include/core/SkDevice.h:345: Done - matched handling of onCreateCompatibleDevice.
12 years, 4 months ago (2012-05-16 19:40:14 UTC) #12
bsalomon
Mostly LGTM. One Q: Does GrInOrderDrawBuffer not need a push/pop implementation? http://codereview.appspot.com/6203067/diff/18002/include/core/SkDevice.h File include/core/SkDevice.h (right): ...
12 years, 4 months ago (2012-05-16 23:56:27 UTC) #13
robertphillips
I don't think the GrInOrderDrawBuffer fits into this system. It has its own logic to ...
12 years, 4 months ago (2012-05-22 15:02:57 UTC) #14
bsalomon
If I'm using a GrIODB and I say: target->setClip(clipA); target->pushClip(); target->setClip(clipB); target->popClip(); target->drawRect(rect); won't my ...
12 years, 4 months ago (2012-05-22 15:37:08 UTC) #15
robertphillips
What about renaming the pushClip/popClip methods to clipWasPushed/clipWasPopped? The actual pushing & popping is being ...
12 years, 4 months ago (2012-05-22 15:56:59 UTC) #16
robertphillips
Renamed functions to clarify their purpose. Generalized comments in GrContext to better describe their intended ...
12 years, 4 months ago (2012-05-22 20:25:09 UTC) #17
bsalomon
On 2012/05/22 20:25:09, robertphillips wrote: > Renamed functions to clarify their purpose. Generalized comments in ...
12 years, 4 months ago (2012-05-22 20:49:07 UTC) #18
robertphillips
12 years, 4 months ago (2012-05-23 11:44:44 UTC) #19
committed as r4034
Sign in to reply to this message.

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