aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SamplePathFill.cpp
diff options
context:
space:
mode:
authorGravatar scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-11-12 14:41:20 +0000
committerGravatar scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-11-12 14:41:20 +0000
commit086364b8e6f405ec62f36a149874af12dc80772c (patch)
tree0de001b1e542bccd7d0316bd18f7bb1ba63aa14b /samplecode/SamplePathFill.cpp
parentfeeca3c7c21423f9189e9100aad4ca7397e9728d (diff)
Changes to make SkPDiff more robost.
bitmap_to_cielab now returns a boolean. Instead of asserting that the config is 8888, copy to 8888 (and return false on failure). This allows skpdiff to work on Index8 bitmaps (without changing the code that does the real work). If it returns false, do not attempt to create a pmetric. In pmetric, exit early if maxLevels is <= 2, since this would crash later in the function (creation of an ImageL3D if maxLevels is 0, and then the creation of an array of a negative number of entries). maxLevels is small if the width or height of the image is small (i.e. a bitmap with width 1 has maxLevels of 0). R=djsollen@google.com Review URL: https://codereview.chromium.org/65253002 git-svn-id: http://skia.googlecode.com/svn/trunk@12239 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SamplePathFill.cpp')
0 files changed, 0 insertions, 0 deletions