Go to file
scroggo@google.com 7e6fceeffd Test region decoding in skimage, plus fixes.
Add tests in skimage to perform region decoding. Write out a
PNG of the region as well as a bitmap obtained with extractSubset
for comparison.

Rename decodeRegion to decodeSubset, so it will not be confused
with SkRegion. (Leave a function called decodeRegion which calls
decodeSubset.)

Clean up some comments.

Use png_set_interlaced_pass instead of modifying pass directly.

Make some changes to region decoding to fix problems I discovered
during testing:

Only call getAddr within a valid range.
Check for a NULL fInputStream.
Return a boolean for whether cropBitmap succeeded.
In cropBitmap, do not attempt to draw to a bitmap to an Index8
bitmap, which crashes. Use extractSubset instead.
Remove an assert.

R=djsollen@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@8996 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-05-03 20:14:28 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Add benches for all xfermodes. 2013-05-03 16:28:33 +00:00
debugger Sanitizing source files in Housekeeper-Nightly 2013-05-02 07:01:25 +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 SkBitmapHasher: use 64-bit-truncated MD5 instead of 64-bit CityHash 2013-05-03 17:35:39 +00:00
gyp Exclude angle dependency on non-angle builds 2013-05-03 14:00:34 +00:00
include Test region decoding in skimage, plus fixes. 2013-05-03 20:14:28 +00:00
platform_tools/android fix copy-paste error in setup script 2013-05-03 14:21:35 +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 Test region decoding in skimage, plus fixes. 2013-05-03 20:14:28 +00:00
tests add (temporary) diagnostic code for normalize test 2013-05-03 18:11:00 +00:00
third_party Add BSON implementation to third_party 2012-06-13 18:22:09 +00:00
tools Test region decoding in skimage, plus fixes. 2013-05-03 20:14:28 +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 Update DEPS and GYP to use the copy of Android in platform_tools. 2013-05-02 12:27:21 +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 Whitespace change to test commit queue. (SkipBuildbotRuns) 2013-05-01 21:50:53 +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