OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "LazyDecodeBitmap.h" | 8 #include "LazyDecodeBitmap.h" |
9 #include "CopyTilesRenderer.h" | 9 #include "CopyTilesRenderer.h" |
10 #include "SkBitmap.h" | 10 #include "SkBitmap.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 DEFINE_int32(clone, 0, "Clone the picture n times before rendering."); | 26 DEFINE_int32(clone, 0, "Clone the picture n times before rendering."); |
27 DECLARE_bool(deferImageDecoding); | 27 DECLARE_bool(deferImageDecoding); |
28 DEFINE_int32(maxComponentDiff, 256, "Maximum diff on a component, 0 - 256. Compo
nents that differ " | 28 DEFINE_int32(maxComponentDiff, 256, "Maximum diff on a component, 0 - 256. Compo
nents that differ " |
29 "by more than this amount are considered errors, though all diffs a
re reported. " | 29 "by more than this amount are considered errors, though all diffs a
re reported. " |
30 "Requires --validate."); | 30 "Requires --validate."); |
31 DECLARE_string(readPath); | 31 DECLARE_string(readPath); |
32 DEFINE_bool(writeEncodedImages, false, "Any time the skp contains an encoded ima
ge, write it to a " | 32 DEFINE_bool(writeEncodedImages, false, "Any time the skp contains an encoded ima
ge, write it to a " |
33 "file rather than decoding it. Requires writePath to be set. Skips d
rawing the full " | 33 "file rather than decoding it. Requires writePath to be set. Skips d
rawing the full " |
34 "skp to a file. Not compatible with deferImageDecoding."); | 34 "skp to a file. Not compatible with deferImageDecoding."); |
35 DEFINE_string(writeJsonSummaryPath, "", "File to write a JSON summary of image r
esults to. " | 35 DEFINE_string(writeJsonSummaryPath, "", "File to write a JSON summary of image r
esults to. " |
36 "TODO(epoger): Currently, this only works if --writePath is also s
pecified."); | 36 "TODO(epoger): Currently, this only works if --writePath is also s
pecified. " |
| 37 "See https://code.google.com/p/skia/issues/detail?id=2043 ."); |
37 DEFINE_string2(writePath, w, "", "Directory to write the rendered images."); | 38 DEFINE_string2(writePath, w, "", "Directory to write the rendered images."); |
38 DEFINE_bool(writeWholeImage, false, "In tile mode, write the entire rendered ima
ge to a " | 39 DEFINE_bool(writeWholeImage, false, "In tile mode, write the entire rendered ima
ge to a " |
39 "file, instead of an image for each tile."); | 40 "file, instead of an image for each tile."); |
40 DEFINE_bool(validate, false, "Verify that the rendered image contains the same p
ixels as " | 41 DEFINE_bool(validate, false, "Verify that the rendered image contains the same p
ixels as " |
41 "the picture rendered in simple mode. When used in conjunction with
--bbh, results " | 42 "the picture rendered in simple mode. When used in conjunction with
--bbh, results " |
42 "are validated against the picture rendered in the same mode, but wi
thout the bbh."); | 43 "are validated against the picture rendered in the same mode, but wi
thout the bbh."); |
43 | 44 |
44 DEFINE_bool(bench_record, false, "If true, drop into an infinite loop of recordi
ng the picture."); | 45 DEFINE_bool(bench_record, false, "If true, drop into an infinite loop of recordi
ng the picture."); |
45 | 46 |
46 static void make_output_filepath(SkString* path, const SkString& dir, | 47 static void make_output_filepath(SkString* path, const SkString& dir, |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 jsonSummary.writeToFile(FLAGS_writeJsonSummaryPath[0]); | 488 jsonSummary.writeToFile(FLAGS_writeJsonSummaryPath[0]); |
488 } | 489 } |
489 return 0; | 490 return 0; |
490 } | 491 } |
491 | 492 |
492 #if !defined SK_BUILD_FOR_IOS | 493 #if !defined SK_BUILD_FOR_IOS |
493 int main(int argc, char * const argv[]) { | 494 int main(int argc, char * const argv[]) { |
494 return tool_main(argc, (char**) argv); | 495 return tool_main(argc, (char**) argv); |
495 } | 496 } |
496 #endif | 497 #endif |
OLD | NEW |