Go to file
vandebo@chromium.org 9fbdf87518 [PDF] Refactor content stream creation in SkPDFDevice to support more xfermodes.
Instead of writing all drawing and state updates into the final content stream immediately, this change creates a new ContentEntry each time the transform, clip, or paint changes.  Drawing is done into a stream in the ContentEntry.  When the consumer asks for the content, we combine all the ContentEntries with appropriate updates to the state (clip, transform, paint) in between.  This allows us to modify the clip even after a drawing has completed.  It also lets us remove ContentEntries with no drawing.  Further optimization can be done to better use the stack features of PDF, for now we follow the previous model of having a single clip followed by a single transform on the graphic state stack.

Push rectangle logic into SkPDFUtil::AppendRectangle.
Change private functions to adhere to coding standards.

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

git-svn-id: http://skia.googlecode.com/svn/trunk@1269 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-09 07:55:58 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench rename radial to radial1, so I can distinguish it from radial2 in my 2011-04-13 18:32:19 +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 use SkPoint, creating an alias for GrPoint 2011-05-06 19:26:26 +00:00
gyp Replace GrStringBuilder with SkString. First step in cleaning up the shader generator. Slight performance hit when creating a new shader (<10% of total shader gen time on my Windows box is spent in building our string before handing it to GL). Much of this can be recovered by better usage pattern of SkString in coming revisions. 2011-05-06 13:53:47 +00:00
include [PDF] Refactor content stream creation in SkPDFDevice to support more xfermodes. 2011-05-09 07:55:58 +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 2011-05-05 20:05:10 +00:00
src [PDF] Refactor content stream creation in SkPDFDevice to support more xfermodes. 2011-05-09 07:55:58 +00:00
tests update 2011-05-03 21:27:49 +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 fix precendence error (== binds tighter than &) 2011-05-04 14:43:40 +00:00
xcode Replace GrStringBuilder with SkString. First step in cleaning up the shader generator. Slight performance hit when creating a new shader (<10% of total shader gen time on my Windows box is spent in building our string before handing it to GL). Much of this can be recovered by better usage pattern of SkString in coming revisions. 2011-05-06 13:53:47 +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