Description[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.
Committed: http://code.google.com/p/skia/source/detail?r=1320
Patch Set 1 #
Total comments: 24
Patch Set 2 : Address comments #
Total comments: 2
Patch Set 3 : Remove AutoContentEntry #Patch Set 4 : nit #
Total comments: 6
Patch Set 5 : Address comments #
MessagesTotal messages: 7
|