Go to file
reed@google.com f2eb5ab780 fix bug where we wrote uninitialized data to the flatten stream for shaders.
Both shader and gradient_shader write matrices to the flatten stream. However, they were
just calling write(&matrix, sizeof(SkMatrix)) and the matrix can contain lazily-computed
function ptrs as part of its internal cache. Thus two matrices that are logically the
same may write different bytes.

This is a problem because picture relies on flattening objects and then using the
flatten stream as a key into its cache. This matrix-write bug effectively kills the
effectiveness of the cache for shaders.

The fix is to write proper read/write functions for matrix (and region btw). These
call through to the existing low-level flatten routines (which just write into a
memory ptr).



git-svn-id: http://skia.googlecode.com/svn/trunk@1290 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-10 22:56:42 +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 Make GrMatrix an alias of SkMatrix. Add new methods to SkMatrix. 2011-05-10 13:52:42 +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 fix bug where we wrote uninitialized data to the flatten stream for shaders. 2011-05-10 22:56:42 +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 fix bug where we wrote uninitialized data to the flatten stream for shaders. 2011-05-10 22:56:42 +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 Fixup old VS2010 project in case anyone is using it 2011-05-09 18:53:14 +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