| 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 "CopyTilesRenderer.h" | 8 #include "CopyTilesRenderer.h" |
| 9 #include "SkBitmap.h" | 9 #include "SkBitmap.h" |
| 10 #include "SkDevice.h" | 10 #include "SkDevice.h" |
| 11 #include "SkCommandLineFlags.h" | 11 #include "SkCommandLineFlags.h" |
| 12 #include "SkForceLinking.h" |
| 12 #include "SkGraphics.h" | 13 #include "SkGraphics.h" |
| 13 #include "SkImageDecoder.h" | 14 #include "SkImageDecoder.h" |
| 14 #include "SkImageEncoder.h" | 15 #include "SkImageEncoder.h" |
| 15 #include "SkMath.h" | 16 #include "SkMath.h" |
| 16 #include "SkOSFile.h" | 17 #include "SkOSFile.h" |
| 17 #include "SkPicture.h" | 18 #include "SkPicture.h" |
| 18 #include "SkStream.h" | 19 #include "SkStream.h" |
| 19 #include "SkString.h" | 20 #include "SkString.h" |
| 20 #include "PictureRenderer.h" | 21 #include "PictureRenderer.h" |
| 21 #include "PictureRenderingFlags.h" | 22 #include "PictureRenderingFlags.h" |
| 22 #include "picture_utils.h" | 23 #include "picture_utils.h" |
| 23 | 24 |
| 25 // Required to ensure that image decoders get linked correctly. |
| 26 __SK_FORCE_IMAGE_DECODER_LINKING; |
| 27 |
| 24 // Flags used by this file, alphabetically: | 28 // Flags used by this file, alphabetically: |
| 25 DEFINE_int32(clone, 0, "Clone the picture n times before rendering."); | 29 DEFINE_int32(clone, 0, "Clone the picture n times before rendering."); |
| 26 DECLARE_bool(deferImageDecoding); | 30 DECLARE_bool(deferImageDecoding); |
| 27 DEFINE_int32(maxComponentDiff, 256, "Maximum diff on a component, 0 - 256. Compo
nents that differ " | 31 DEFINE_int32(maxComponentDiff, 256, "Maximum diff on a component, 0 - 256. Compo
nents that differ " |
| 28 "by more than this amount are considered errors, though all diffs a
re reported. " | 32 "by more than this amount are considered errors, though all diffs a
re reported. " |
| 29 "Requires --validate."); | 33 "Requires --validate."); |
| 30 DECLARE_string(readPath); | 34 DECLARE_string(readPath); |
| 31 DEFINE_bool(writeEncodedImages, false, "Any time the skp contains an encoded ima
ge, write it to a " | 35 DEFINE_bool(writeEncodedImages, false, "Any time the skp contains an encoded ima
ge, write it to a " |
| 32 "file rather than decoding it. Requires writePath to be set. Skips d
rawing the full " | 36 "file rather than decoding it. Requires writePath to be set. Skips d
rawing the full " |
| 33 "skp to a file. Not compatible with deferImageDecoding."); | 37 "skp to a file. Not compatible with deferImageDecoding."); |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 #endif | 440 #endif |
| 437 #endif | 441 #endif |
| 438 return 0; | 442 return 0; |
| 439 } | 443 } |
| 440 | 444 |
| 441 #if !defined SK_BUILD_FOR_IOS | 445 #if !defined SK_BUILD_FOR_IOS |
| 442 int main(int argc, char * const argv[]) { | 446 int main(int argc, char * const argv[]) { |
| 443 return tool_main(argc, (char**) argv); | 447 return tool_main(argc, (char**) argv); |
| 444 } | 448 } |
| 445 #endif | 449 #endif |
| OLD | NEW |