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

Issue 4538082: [PDF] Add clip support and some optimizations for "complex" xfer modes. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by Steve VanDeBogart
Modified:
13 years, 1 month ago
Reviewers:
Chris Guillory
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

[PDF] Add clip support and some optimizations for "complex" xfer modes. For Clear, Src, Dst/Src-In/Out, we have to consider the current clip, and potentially draw Dst, clipped to the inverse of the current clip before doing the operation of interest. For clear or src, if we haven't drawn anything, or the clip is empty, there's nothing to be done. For Src/Dst-In/Out, if either is empty, the result is empty. Committed: http://code.google.com/p/skia/source/detail?r=1407

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix optimization (current vs all emptiness) #

Total comments: 14

Patch Set 3 : Address commnets #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -13 lines) Patch
M include/pdf/SkPDFDevice.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 7 chunks +56 lines, -13 lines 1 comment Download

Messages

Total messages: 4
Steve VanDeBogart
http://codereview.appspot.com/4538082/diff/1/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (left): http://codereview.appspot.com/4538082/diff/1/src/pdf/SkPDFDevice.cpp#oldcode1183 src/pdf/SkPDFDevice.cpp:1183: SkASSERT(fDstFormXObject.get() == NULL); This is removed because it is ...
13 years, 1 month ago (2011-05-23 06:19:49 UTC) #1
Chris Guillory
I'd like to look over this one again. http://codereview.appspot.com/4538082/diff/2001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/4538082/diff/2001/src/pdf/SkPDFDevice.cpp#newcode1037 src/pdf/SkPDFDevice.cpp:1037: if ...
13 years, 1 month ago (2011-05-24 00:47:06 UTC) #2
Steve VanDeBogart
On 2011/05/24 00:47:06, Chris Guillory wrote: > I'd like to look over this one again. ...
13 years, 1 month ago (2011-05-24 06:07:51 UTC) #3
Chris Guillory
13 years, 1 month ago (2011-05-24 09:27:51 UTC) #4
LGTM.

http://codereview.appspot.com/4538082/diff/2002/src/pdf/SkPDFDevice.cpp
File src/pdf/SkPDFDevice.cpp (right):

http://codereview.appspot.com/4538082/diff/2002/src/pdf/SkPDFDevice.cpp#newco...
src/pdf/SkPDFDevice.cpp:1217: // Now that we've redrawn dst except what's in the
clip, if there's
Nits/Optional: Now that we've -> We've
except what's in -> with
source -> src
Sign in to reply to this message.

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