Go to file
scroggo@google.com 74b7ffda68 Fixes for piping bitmaps with encoded data.
Similar goals as https://codereview.chromium.org/14437012.

Builds on patch set 1 from that issue
(https://codereview.chromium.org/14437012/#ps1).

Instead of the changes in patch set 2 from that issue, this
changes SkOrderedWriteBuffer::writeBitmap to store whether an
SkBitmapHeap was used when to store the index of the SkBitmap.
SkOrderedReadBuffer::readBitmap now uses that information to
distinguish between using the heap and unflattening.

In addition, writeBitmap now records the width/height first in
all cases. If now SkBitmapHeapReader is attached, but an
SkBitmapHeap was used to record the bitmap, reading will fail
and provide the same red SkBitmap as in the case where the
SkBitmap was encoded but could not be decoded.

Updates the PICTURE_VERSION as well.

The key differences in this CL to look at are in:
SkOrderedWriteBuffer,
SkOrderedReadBuffer,
and SkPicture.

BUG=
R=djsollen@google.com

Review URL: https://codereview.chromium.org/14230022

git-svn-id: http://skia.googlecode.com/svn/trunk@8917 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-04-30 02:32:41 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench add routines to compute error between conic and quad 2013-04-30 02:14:58 +00:00
debugger Link webp in skimage and debugger. 2013-04-15 22:05:03 +00:00
experimental path ops work in progress 2013-04-18 15:58:21 +00:00
forth Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
gm Fixes for piping bitmaps with encoded data. 2013-04-30 02:32:41 +00:00
gyp path ops -- handle non-finite numbers 2013-04-26 19:51:16 +00:00
include Fixes for piping bitmaps with encoded data. 2013-04-30 02:32:41 +00:00
platform_tools/android Copy the top level Android directory into trunk. 2013-04-29 12:09:31 +00:00
resources Move resource dir from gm to trunk 2013-04-15 17:36:08 +00:00
samplecode Fixes for piping bitmaps with encoded data. 2013-04-30 02:32:41 +00:00
src Fixes for piping bitmaps with encoded data. 2013-04-30 02:32:41 +00:00
tests add wacky random shift so I can generate some zeros (without the optimizer knowing) 2013-04-29 15:27:42 +00:00
third_party Add BSON implementation to third_party 2012-06-13 18:22:09 +00:00
tools Updates to skimage tool to use it for testing. 2013-04-25 17:33:51 +00:00
trybots_to_run/chrome Deleting the hardcoded list of compile bots in trybots_to_run. 2013-04-09 11:59:42 +00:00
.gitignore Add .swp files to gitignore. 2013-02-08 16:59:59 +00:00
codereview.settings Removing blank lines from codereview.settings. 2013-02-26 16:01:21 +00:00
DEPS Upstream Android modifications to the image encoders/decoders. 2013-03-14 14:42:18 +00:00
Doxyfile Pointing to http://skia-autogen.googlecode.com/svn/docs/html/index.html in Doxyfile 2012-07-03 11:35:07 +00:00
gyp_skia Update gyp to allow alternative out directories 2012-11-28 14:11:41 +00:00
LICENSE Manually update copyright notices in files that defied the automated process 2011-07-28 14:24:55 +00:00
make.bat Manually update copyright notices in files that defied the automated process 2011-07-28 14:24:55 +00:00
make.py gyp: generate "everything" and "most" targets instead of "all" 2012-10-25 16:32:07 +00:00
Makefile path ops fix release android build 2013-04-11 14:09:50 +00:00
Makefile.old Higher resolution timers for bench. 2011-06-07 19:16:02 +00:00
PRESUBMIT.py If the tree is closed then print information about contacting the sheriff. 2013-04-12 19:45:46 +00:00
README whitespace commit to trigger buildbot 2011-07-15 14:11:58 +00:00
skia.gyp gyp: generate "everything" and "most" targets instead of "all" 2012-10-25 16:32:07 +00:00
whitespace.txt Added Google homepage to list of SKPs. Whitespace change to trigger rebuilds. 2013-04-27 18:26:56 +00:00

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

See full details, and build instructions, at http://code.google.com/p/skia/wiki/DocRoot