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

Issue 6348100: Added SkDevice onAttachToCanvas & onDetachFromCanvas methods (Closed)

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

Description

Here is how officially handing the clip stack to the devices when they are attached would look. Note that I took the next steps of removing the clip stack from the prepareForDeviceDraw and gainFocus calls and moved the pixel lock\unlock into the two new methods.

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed code review issues #

Total comments: 4

Patch Set 3 : Added comment in SkGpuDevice.cpp #

Total comments: 4

Patch Set 4 : Check to ensure no code has changed #

Patch Set 5 : Reverted changes that had leaked in (from aborted SkPDFDevice changes #

Patch Set 6 : plumbed onAttach\onDetach into SkPDFDevice #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -40 lines) Patch
M include/core/SkCanvas.h View 1 2 chunks +10 lines, -2 lines 0 comments Download
M include/core/SkDevice.h View 1 3 chunks +33 lines, -2 lines 0 comments Download
M include/gpu/SkGpuDevice.h View 1 3 chunks +7 lines, -2 lines 0 comments Download
M include/pdf/SkPDFDevice.h View 1 2 3 4 5 3 chunks +6 lines, -3 lines 1 comment Download
M include/utils/SkDeferredCanvas.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 4 7 chunks +10 lines, -14 lines 0 comments Download
M src/core/SkDevice.cpp View 1 1 chunk +11 lines, -2 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 6 chunks +30 lines, -10 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 3 chunks +17 lines, -2 lines 0 comments Download

Messages

Total messages: 19
robertphillips
http://codereview.appspot.com/6348100/diff/1/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): http://codereview.appspot.com/6348100/diff/1/src/core/SkCanvas.cpp#newcode80 src/core/SkCanvas.cpp:80: Pros: ensures the clip stack is passed to the ...
12 years, 5 months ago (2012-07-12 15:56:32 UTC) #1
reed1
1. do we still want a clipstack ptr in SkDraw? 2. can we add debugging, ...
12 years, 5 months ago (2012-07-12 16:08:07 UTC) #2
reed1
4. should we pass SkCanvas* to onAttach? (and not pass it on gainFocus)?
12 years, 5 months ago (2012-07-12 16:08:37 UTC) #3
Steve VanDeBogart
http://codereview.appspot.com/6348100/diff/1/include/core/SkDevice.h File include/core/SkDevice.h (right): http://codereview.appspot.com/6348100/diff/1/include/core/SkDevice.h#newcode140 include/core/SkDevice.h:140: drive-by comment: A comment about when this pair of ...
12 years, 5 months ago (2012-07-12 17:43:22 UTC) #4
robertphillips
1) I left that in there b.c. SkPDFDevice seems to use it quite a bit ...
12 years, 5 months ago (2012-07-12 18:09:04 UTC) #5
reed1
PDF dude, what to you think about removing clipstack from SkDraw? http://codereview.appspot.com/6348100/diff/4002/src/core/SkDevice.cpp File src/core/SkDevice.cpp (left): ...
12 years, 5 months ago (2012-07-12 19:36:33 UTC) #6
robertphillips
http://codereview.appspot.com/6348100/diff/4002/src/core/SkDevice.cpp File src/core/SkDevice.cpp (left): http://codereview.appspot.com/6348100/diff/4002/src/core/SkDevice.cpp#oldcode22 src/core/SkDevice.cpp:22: I already have it in gainFocus (in SkDevice.h) but ...
12 years, 5 months ago (2012-07-12 19:42:17 UTC) #7
Steve VanDeBogart
On 2012/07/12 19:36:33, reed1 wrote: > PDF dude, what to you think about removing clipstack ...
12 years, 5 months ago (2012-07-12 19:50:23 UTC) #8
reed1
lgtm w/ question in SkDeferredCanvas.h http://codereview.appspot.com/6348100/diff/9001/include/utils/SkDeferredCanvas.h File include/utils/SkDeferredCanvas.h (left): http://codereview.appspot.com/6348100/diff/9001/include/utils/SkDeferredCanvas.h#oldcode223 include/utils/SkDeferredCanvas.h:223: {} Why is this ...
12 years, 5 months ago (2012-07-12 19:50:37 UTC) #9
reed1
Robert, Is updating SkPDFDevice workable in this CL, or should that be left for Steve ...
12 years, 5 months ago (2012-07-12 19:51:45 UTC) #10
robertphillips
http://codereview.appspot.com/6348100/diff/9001/include/utils/SkDeferredCanvas.h File include/utils/SkDeferredCanvas.h (left): http://codereview.appspot.com/6348100/diff/9001/include/utils/SkDeferredCanvas.h#oldcode223 include/utils/SkDeferredCanvas.h:223: {} The options were delete it or make it ...
12 years, 5 months ago (2012-07-12 19:54:30 UTC) #11
robertphillips
http://codereview.appspot.com/6348100/diff/9001/include/utils/SkDeferredCanvas.h File include/utils/SkDeferredCanvas.h (left): http://codereview.appspot.com/6348100/diff/9001/include/utils/SkDeferredCanvas.h#oldcode223 include/utils/SkDeferredCanvas.h:223: {} Justin - can you provide any insight into ...
12 years, 5 months ago (2012-07-12 20:02:15 UTC) #12
robertphillips
On 2012/07/12 19:51:45, reed1 wrote: > Robert, > > Is updating SkPDFDevice workable in this ...
12 years, 5 months ago (2012-07-12 20:23:57 UTC) #13
Steve VanDeBogart
On 2012/07/12 20:23:57, robertphillips wrote: > On 2012/07/12 19:51:45, reed1 wrote: > > Robert, > ...
12 years, 5 months ago (2012-07-12 20:28:02 UTC) #14
reed1
Lets share in the fun! CL progression: 1. roberphilips -- add a field to SkPDFDevice ...
12 years, 5 months ago (2012-07-12 20:44:12 UTC) #15
junov1
lgtm for SkDeferredCanvas http://codereview.appspot.com/6348100/diff/9001/include/utils/SkDeferredCanvas.h File include/utils/SkDeferredCanvas.h (left): http://codereview.appspot.com/6348100/diff/9001/include/utils/SkDeferredCanvas.h#oldcode223 include/utils/SkDeferredCanvas.h:223: {} On 2012/07/12 20:02:15, robertphillips wrote: ...
12 years, 5 months ago (2012-07-12 20:53:01 UTC) #16
robertphillips
Here are the SkPDFDevice changes. http://codereview.appspot.com/6348100/diff/14002/include/pdf/SkPDFDevice.h File include/pdf/SkPDFDevice.h (left): http://codereview.appspot.com/6348100/diff/14002/include/pdf/SkPDFDevice.h#oldcode260 include/pdf/SkPDFDevice.h:260: This class derives from ...
12 years, 5 months ago (2012-07-12 20:56:01 UTC) #17
Steve VanDeBogart
On 2012/07/12 20:56:01, robertphillips wrote: > Here are the SkPDFDevice changes. > > http://codereview.appspot.com/6348100/diff/14002/include/pdf/SkPDFDevice.h > ...
12 years, 5 months ago (2012-07-12 20:58:06 UTC) #18
robertphillips
12 years, 5 months ago (2012-07-13 15:36:45 UTC) #19
committed as r4598
Sign in to reply to this message.

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