skia2/tools
scroggo@google.com 086364b8e6 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
2013-11-12 14:41:20 +00:00
..
copyright Script to automatically update copyright notices in C/C++ source code. 2011-07-28 14:29:58 +00:00
flags gm: add --ignoreTests flag 2013-09-19 06:18:27 +00:00
lua Added 3-color gradient scraper for detecting symmetrical gradients. 2013-08-01 17:32:56 +00:00
skpdiff Changes to make SkPDiff more robost. 2013-11-12 14:41:20 +00:00
tests Changes bench_graph_svg.py test to check_bench_regressions.py test; deletes deprecated chunks in syn_bucket_subdir. 2013-10-24 18:08:45 +00:00
__init__.py Add bench_pictures config 2012-12-12 20:13:26 +00:00
bbh_shootout.cpp Major bench refactoring. 2013-09-10 19:23:38 +00:00
bench_pictures_cfg_helper.py Fix bench_pictures.cfg 2013-03-07 20:18:27 +00:00
bench_pictures_main.cpp Restore a default timer to bench_pictures. 2013-08-02 16:09:10 +00:00
bench_pictures.cfg Enable msaa4 on Nexus 4 in bench_pictures 2013-09-16 20:39:23 +00:00
build-tot-chromium.sh Add safesync_url to build-tot-chromium.sh 2013-07-11 11:28:41 +00:00
buildbot_globals.py Remove base-* directories from gm expected/actual paths; just use platform names 2013-08-20 16:21:55 +00:00
CopyTilesRenderer.cpp Flags for render_pictures: verify, clone and writeWholeImage: 2012-12-18 22:24:03 +00:00
CopyTilesRenderer.h Created my own flag parser, based off of gflags. 2013-03-04 16:41:06 +00:00
coverage.sh add a way to get code coverage 2013-09-13 19:32:43 +00:00
doxygen_footer.txt Fix update-doxygen, which fails when skia-autogen is reset 2012-09-26 16:09:43 +00:00
filtermain.cpp Replace SkPicture(SkStream) constructors with a factory. 2013-06-28 21:32:00 +00:00
find_bad_images_in_skps.py Make image decoding more fault resistant, less verbose. 2013-10-04 12:46:45 +00:00
find_mac_sdk.py Argv[0] isn't the first argument to anything. 2013-02-08 22:45:11 +00:00
gcov_shim add a way to get code coverage 2013-09-13 19:32:43 +00:00
generate_fir_coeff.py Fix metrics on Windows. 2013-07-27 20:37:56 +00:00
git-skia-verify Land http://codereview.appspot.com/6117046/ for Guanqun.Lu@gmail.com 2012-04-24 15:19:23 +00:00
jsondiff.py svndiff.py: properly handle empty expectations dictionary 2013-09-04 16:27:16 +00:00
LazyDecodeBitmap.cpp move SkImage::ColorType into SkColorType 2013-11-01 13:46:54 +00:00
LazyDecodeBitmap.h Add the lazy decoder from PictureFlags to SkImageDecoder 2013-07-16 18:21:46 +00:00
merge_static_libs.py Build Skia as a static library 2012-10-10 19:45:51 +00:00
path_utils.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2012-12-08 02:01:38 +00:00
path_utils.h Sanitizing source files in Skia_Periodic_House_Keeping 2012-12-08 02:01:38 +00:00
PdfRenderer.cpp Add SkPDFDeviceFlatenner which extends SkPDFDevice to add support to flatten the path and the text when we have perspective. 2013-10-14 13:42:12 +00:00
PdfRenderer.h Add SkPDFDeviceFlatenner which extends SkPDFDevice to add support to flatten the path and the text when we have perspective. 2013-10-14 13:42:12 +00:00
picture_utils.cpp Defining new color constat for transparent color 2012-12-06 21:47:40 +00:00
picture_utils.h Remove automatic resizing in *_pictures 2012-09-20 18:54:04 +00:00
PictureBenchmark.cpp Committed: http://code.google.com/p/skia/source/detail?r=10372 2013-07-31 20:00:56 +00:00
PictureBenchmark.h Committed: http://code.google.com/p/skia/source/detail?r=10372 2013-07-31 20:00:56 +00:00
PictureRenderer.cpp R-Tree -- Don't sort draw commands unless specified. 2013-08-30 17:27:47 +00:00
PictureRenderer.h add extra flag (currently unused) for high quality downsampling 2013-07-09 14:13:04 +00:00
PictureRenderingFlags.cpp Sanitizing source files in Housekeeper-Nightly 2013-07-17 07:01:13 +00:00
PictureRenderingFlags.h Change the name of SkFlags to SkCommandLineFlags. 2013-03-21 19:43:15 +00:00
pinspect.cpp Add the lazy decoder from PictureFlags to SkImageDecoder 2013-07-16 18:21:46 +00:00
rebaseline.py More work to integrate skimage with rebaseline tools. 2013-10-22 00:42:46 +00:00
reformat-json.py add reformat-json.py script 2013-07-19 15:45:22 +00:00
render_pdfs_main.cpp Add SkPDFDeviceFlatenner which extends SkPDFDevice to add support to flatten the path and the text when we have perspective. 2013-10-14 13:42:12 +00:00
render_pictures_main.cpp Add support to dump font cache texture for debug purposes 2013-10-02 18:19:17 +00:00
roll_autogen.sh Script to help cycle skia-autogen 2012-08-27 19:37:48 +00:00
sanitize_source_files.py Ignore the .git directory in sanitize_source_files, remove .git directory... 2013-09-11 13:01:27 +00:00
skdiff_html.cpp fix warnings 2013-01-07 22:26:05 +00:00
skdiff_html.h Add newline at end of tools/skdiff_html.h to happify the housekeeping bot 2012-12-05 20:30:00 +00:00
skdiff_image.cpp Add stdio include to skdiff_image. 2013-10-11 19:19:10 +00:00
skdiff_main.cpp force linking inside of skdiff 2013-06-18 21:23:31 +00:00
skdiff_utils.cpp Second wave of Win64 warning cleanup 2013-10-15 17:47:36 +00:00
skdiff_utils.h Sanitizing source files in Skia_Periodic_House_Keeping 2012-12-06 02:01:25 +00:00
skdiff.cpp * Extended skdiff to report alpha channel differences. 2013-01-03 19:23:22 +00:00
skdiff.h * Extended skdiff to report alpha channel differences. 2013-01-03 19:23:22 +00:00
skhello.cpp promote SkImage::AlphaType to SkAlphaType 2013-09-20 19:33:52 +00:00
skimage_main.cpp More work to integrate skimage with rebaseline tools. 2013-10-22 00:42:46 +00:00
submit_try Specify --patchlevel 0 to trychange.py 2013-11-11 13:43:22 +00:00
submit_try.bat Modify submit_try to work on windows 2013-01-24 21:38:51 +00:00
svn.py Make svndiff.py work on Windows and with svn 1.7. 2013-10-07 19:57:35 +00:00
svndiff.py svndiff for the windows 2013-10-29 13:55:29 +00:00
test_image_decoder.cpp Runtime configuration setting for suppressing JPEG decoder errors. 2013-10-14 20:08:48 +00:00
test_pdfs.py Add an SKP to PDF rendered. test_pdfs.py will be hooked up in buildbot testing later. 2012-10-10 15:20:34 +00:00
test_pictures.py Refactor test_pictures so we can add test_pdfs without code duplication. 2012-10-10 15:08:12 +00:00
test_rendering.py Refactor test_pictures so we can add test_pdfs without code duplication. 2012-10-10 15:08:12 +00:00
update-doxygen.sh Housekeeper should not fail when skia-autogen is reset. 2013-05-01 14:47:03 +00:00
valgrind.supp Silence another valgrind leak 2013-11-12 14:05:15 +00:00
verify_images_for_gm_results.py Remove base-* directories from gm expected/actual paths; just use platform names 2013-08-20 16:21:55 +00:00
win_dbghelp.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-03-09 07:01:15 +00:00
win_dbghelp.h Collect minidump and print callstack if an app chrashes. 2013-03-08 18:00:16 +00:00
win_lcid.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-04-03 07:01:14 +00:00
xsan_build skia/trunk changes for generic sanitizer gyp flag. 2013-10-08 15:16:36 +00:00