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

Issue 4495041: [PDF] Fix setting of existing clip for layers. (Closed)

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

Description

[PDF] Fix setting of existing clip for layers. The current approach of setting the existing clip just before drawing a layer into a device doesn't work. SkDevice::clear() uses existing clip before that and if we need to put the content in a transparency group (i.e. for SrcIn xfermode), we need a valid existing clip. Instead, change the factory to use a special constructor when creating a layer device. Committed: http://code.google.com/p/skia/source/detail?r=1270

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase and fix nit #

Patch Set 3 : Add missing public #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -31 lines) Patch
M include/pdf/SkPDFDevice.h View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 4 chunks +42 lines, -29 lines 0 comments Download

Messages

Total messages: 4
Steve VanDeBogart
I could just add this to http://codereview.appspot.com/4459041/ instead, if you prefer.
13 years, 4 months ago (2011-05-06 17:20:30 UTC) #1
Chris Guillory
LGTM. http://codereview.appspot.com/4495041/diff/1/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/4495041/diff/1/src/pdf/SkPDFDevice.cpp#newcode447 src/pdf/SkPDFDevice.cpp:447: // needs to be done once, we we ...
13 years, 4 months ago (2011-05-06 18:59:35 UTC) #2
Steve VanDeBogart
http://codereview.appspot.com/4495041/diff/1/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/4495041/diff/1/src/pdf/SkPDFDevice.cpp#newcode447 src/pdf/SkPDFDevice.cpp:447: // needs to be done once, we we don't ...
13 years, 4 months ago (2011-05-06 21:39:39 UTC) #3
Steve VanDeBogart
13 years, 4 months ago (2011-05-06 21:41:55 UTC) #4
+reed In case he has any comment on this.

Currently, this is a bit ugly, but if we kill factories, it'll be much better,
as we'll ask the parent layer to create the device for the new layer and it
knows what the existing clip is.
Sign in to reply to this message.

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