diff options
author | 2013-05-03 20:14:28 +0000 | |
---|---|---|
committer | 2013-05-03 20:14:28 +0000 | |
commit | 7e6fceeffd250d99eff9f1dbb459a916ae4a754e (patch) | |
tree | 12bd9ee920cd58a8a31b9aff4abde0429a95a372 /src/pathops/SkQuarticRoot.h | |
parent | dc9cdf8d49ecfe174c408845b7f2de6f5a756b1d (diff) |
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
Diffstat (limited to 'src/pathops/SkQuarticRoot.h')
0 files changed, 0 insertions, 0 deletions