[PDF] Fix setting of existing clip for layers.
authorvandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 9 May 2011 07:58:08 +0000 (07:58 +0000)
committervandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 9 May 2011 07:58:08 +0000 (07:58 +0000)
commita0c7edbb0804144ab320951db5c741eea247fc0f
treeed23627f6bfbece936188640f6d6b8ef217b8096
parent9fbdf875183f5142b8e0ba46ab430cc46ad701bf
[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.

Review URL: http://codereview.appspot.com/4495041

git-svn-id: http://skia.googlecode.com/svn/trunk@1270 2bbb7eff-a529-9590-31e7-b0007b416f81
include/pdf/SkPDFDevice.h
src/pdf/SkPDFDevice.cpp