skia2/include/pdf
vandebo@chromium.org 6112c215fb [PDF] Add support for SrcIn, SrcOut, DstIn, DstOut xfermodes.
This change uses the soft mask (aka soft clip) functionality of PDF to implement the xfermodes.  It has to put existing content (dst) into a form xobject as well as putting the new (src) content into a different form xobject.  It then draws one of them with the other as the soft mask.
To accomplish this, we add a call to finishContentEntry after each call to setUpContentEntry - this is kind of a hack, but I don't see a better way to extract src.
Unfortunately, soft mask is specified in the Graphic State PDF object (and not in the form xobject), so when handling one of these modes, we add a one time GS object to set the soft mask and invoke a simple GS to reset the soft mask when done.

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

git-svn-id: http://skia.googlecode.com/svn/trunk@1320 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-13 03:50:38 +00:00
..
SkPDFCatalog.h Additional SK_API annotations needed for print preview on windows. 2011-03-30 20:14:49 +00:00
SkPDFDevice.h [PDF] Add support for SrcIn, SrcOut, DstIn, DstOut xfermodes. 2011-05-13 03:50:38 +00:00
SkPDFDocument.h Additional SK_API annotations needed for print preview on windows. 2011-03-30 20:14:49 +00:00
SkPDFFont.h [PDF] Add a ToUnicode mapping for fonts. 2011-05-09 18:13:47 +00:00
SkPDFFormXObject.h [PDF] Change the way flip origin is done. 2011-02-24 23:14:04 +00:00
SkPDFGraphicState.h [PDF] Add support for SrcIn, SrcOut, DstIn, DstOut xfermodes. 2011-05-13 03:50:38 +00:00
SkPDFImage.h PDF Type3 Support. 2011-03-04 21:43:27 +00:00
SkPDFPage.h [PDF] Remove one copy of each content stream. 2011-02-24 23:22:30 +00:00
SkPDFShader.h [PDF] Add support for Shaders. 2011-03-08 18:31:02 +00:00
SkPDFStream.h [PDF] Add support for Shaders. 2011-03-08 18:31:02 +00:00
SkPDFTypes.h Store content streams in an SkStream instead of an SkString (64k size limit). 2011-03-28 19:03:50 +00:00
SkPDFUtils.h [PDF] Add support for SrcIn, SrcOut, DstIn, DstOut xfermodes. 2011-05-13 03:50:38 +00:00