Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Issue 15813016: Preparations for running skimage tool on bots. (Closed)

Created:
7 years, 6 months ago by scroggo
Modified:
7 years, 6 months ago
Reviewers:
epoger
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Preparations for running skimage tool on bots. skimage_main: Specify the full name of the expectations file to write on the command line, rather than the folder to write 'results.json'. This is consistent with writeJsonSummaryPath in GM, as well as the format for reading the file. Further, it allows more flexibility to name the file. Do not force opaque when writing bitmaps. skimage does its comparison on the raw bitmaps. The images are written for visual comparison, and mostly transparent bitmaps (like resources/plane.png) aren't meaningful when forced opaque. Provide an option to to write only mismatches to a directory. Handled similar to the writePath. Report a failure if there is no expectations file. This allows writing to the mismatchPath so we can create an initial baseline. Pass SkBitmap by const&. skimage_self_test: Include the name of the json file in the parameter passed to createExpectationsPath. The name has been changed to be more specific. .gitignore: Ignore the new name of the file created by skimage_self_test. run.sh: Run skimage_self_tests.py BUG=http://code.google.com/p/skia/issues/detail?id=1241 R=epoger@google.com Committed: https://code.google.com/p/skia/source/detail?r=9474

Patch Set 1 #

Total comments: 4

Patch Set 2 : Split off run.sh change. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -50 lines) Patch
M tools/skimage_main.cpp View 10 chunks +40 lines, -46 lines 0 comments Download
M tools/tests/skimage/.gitignore View 1 chunk +1 line, -1 line 0 comments Download
M tools/tests/skimage_self_test.py View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
scroggo
7 years, 6 months ago (2013-06-04 22:42:38 UTC) #1
epoger
looks good for the most part; please grab me when you have 10 minutes to ...
7 years, 6 months ago (2013-06-05 14:21:45 UTC) #2
scroggo
https://codereview.chromium.org/15813016/diff/1/tools/skimage_main.cpp File tools/skimage_main.cpp (right): https://codereview.chromium.org/15813016/diff/1/tools/skimage_main.cpp#newcode106 tools/skimage_main.cpp:106: return SkImageEncoder::EncodeFile(outName, bm, SkImageEncoder::kPNG_Type, 100); On 2013/06/05 14:21:45, epoger ...
7 years, 6 months ago (2013-06-05 15:30:38 UTC) #3
epoger
lgtm
7 years, 6 months ago (2013-06-05 15:32:22 UTC) #4
scroggo
7 years, 6 months ago (2013-06-07 12:43:18 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 manually as r9474 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698