Go to file
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
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench check for missing filename (needs to be specified when tool is launched) 2011-05-09 21:59:56 +00:00
experimental convert matrix <--> matrix44 2010-03-01 14:54:05 +00:00
forth more unittests (already found/fixed some bugs) 2009-09-02 02:07:32 +00:00
gm PDF Device should report non-transformed size for width and height. 2011-04-29 17:54:16 +00:00
gpu Disable blend for edge AA not general AA 2011-05-12 20:34:19 +00:00
gyp Edge antialiasing for convex shapes in Ganesh 2011-05-12 15:49:15 +00:00
include [PDF] Add support for SrcIn, SrcOut, DstIn, DstOut xfermodes. 2011-05-13 03:50:38 +00:00
obsolete move old (unmaintained) gl backend out of src. src/gpu superceeds this now. 2011-02-22 20:50:57 +00:00
samplecode add 'p' to toggle on/off testing the pipe 2011-05-12 22:08:24 +00:00
src [PDF] Add support for SrcIn, SrcOut, DstIn, DstOut xfermodes. 2011-05-13 03:50:38 +00:00
tests Fix intentional breakage in previous commit 2011-05-12 13:50:57 +00:00
third_party Add pdf to skia.gyp and checkin a snap of GYP. 2011-03-30 22:04:53 +00:00
tools New 'skdiff' tool to compare two directories full of files, write diff images 2011-04-27 15:39:30 +00:00
unix_test_app Make the unix test app build. 2011-05-04 14:16:36 +00:00
vs Fixup old VS2010 project in case anyone is using it 2011-05-09 18:53:14 +00:00
xcode add include/core to header path for release build 2011-05-11 05:10:16 +00:00
configure.ac Initial automake and autoconf files to build core into libskia.a. 2009-01-06 17:03:16 +00:00
Makefile add typefacecache 2011-05-02 17:33:45 +00:00
Makefile.am Initial automake and autoconf files to build core into libskia.a. 2009-01-06 17:03:16 +00:00
README Add a basic README file. 2009-01-13 22:01:54 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

- 3x3 matrices w/ perspective
- antialiasing, transparency, filters
- shaders, xfermodes, maskfilters, patheffects