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" |
11 #include "SkDevice.h" | 11 #include "SkDevice.h" |
12 #include "SkCommandLineFlags.h" | 12 #include "SkCommandLineFlags.h" |
13 #include "SkGraphics.h" | 13 #include "SkGraphics.h" |
14 #include "SkImageDecoder.h" | 14 #include "SkImageDecoder.h" |
15 #include "SkImageEncoder.h" | 15 #include "SkImageEncoder.h" |
16 #include "SkMath.h" | 16 #include "SkMath.h" |
17 #include "SkOSFile.h" | 17 #include "SkOSFile.h" |
18 #include "SkPicture.h" | 18 #include "SkPicture.h" |
| 19 #include "SkPictureRecorder.h" |
19 #include "SkStream.h" | 20 #include "SkStream.h" |
20 #include "SkString.h" | 21 #include "SkString.h" |
21 #include "PictureRenderer.h" | 22 #include "PictureRenderer.h" |
22 #include "PictureRenderingFlags.h" | 23 #include "PictureRenderingFlags.h" |
23 #include "picture_utils.h" | 24 #include "picture_utils.h" |
24 | 25 |
25 // Flags used by this file, alphabetically: | 26 // Flags used by this file, alphabetically: |
26 DEFINE_int32(clone, 0, "Clone the picture n times before rendering."); | 27 DEFINE_int32(clone, 0, "Clone the picture n times before rendering."); |
27 DECLARE_bool(deferImageDecoding); | 28 DECLARE_bool(deferImageDecoding); |
28 DEFINE_int32(maxComponentDiff, 256, "Maximum diff on a component, 0 - 256. Compo
nents that differ " | 29 DEFINE_int32(maxComponentDiff, 256, "Maximum diff on a component, 0 - 256. Compo
nents that differ " |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 jsonSummary.writeToFile(FLAGS_writeJsonSummaryPath[0]); | 480 jsonSummary.writeToFile(FLAGS_writeJsonSummaryPath[0]); |
480 } | 481 } |
481 return 0; | 482 return 0; |
482 } | 483 } |
483 | 484 |
484 #if !defined SK_BUILD_FOR_IOS | 485 #if !defined SK_BUILD_FOR_IOS |
485 int main(int argc, char * const argv[]) { | 486 int main(int argc, char * const argv[]) { |
486 return tool_main(argc, (char**) argv); | 487 return tool_main(argc, (char**) argv); |
487 } | 488 } |
488 #endif | 489 #endif |
OLD | NEW |