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 "BenchLogger.h" |
8 #include "BenchTimer.h" | 9 #include "BenchTimer.h" |
| 10 #include "CopyTilesRenderer.h" |
9 #include "CrashHandler.h" | 11 #include "CrashHandler.h" |
10 #include "CopyTilesRenderer.h" | |
11 #include "LazyDecodeBitmap.h" | 12 #include "LazyDecodeBitmap.h" |
12 #include "PictureBenchmark.h" | 13 #include "PictureBenchmark.h" |
13 #include "PictureRenderingFlags.h" | 14 #include "PictureRenderingFlags.h" |
14 #include "SkBenchLogger.h" | 15 #include "PictureResultsWriter.h" |
15 #include "SkCommandLineFlags.h" | 16 #include "SkCommandLineFlags.h" |
16 #include "SkData.h" | 17 #include "SkData.h" |
17 #include "SkDiscardableMemoryPool.h" | 18 #include "SkDiscardableMemoryPool.h" |
18 #include "SkGraphics.h" | 19 #include "SkGraphics.h" |
19 #include "SkImageDecoder.h" | 20 #include "SkImageDecoder.h" |
20 #include "SkMath.h" | 21 #include "SkMath.h" |
21 #include "SkOSFile.h" | 22 #include "SkOSFile.h" |
22 #include "SkPicture.h" | 23 #include "SkPicture.h" |
23 #include "SkStream.h" | 24 #include "SkStream.h" |
24 #include "picture_utils.h" | 25 #include "picture_utils.h" |
25 #include "PictureResultsWriter.h" | |
26 | 26 |
27 SkBenchLogger gLogger; | 27 BenchLogger gLogger; |
28 PictureResultsLoggerWriter gLogWriter(&gLogger); | 28 PictureResultsLoggerWriter gLogWriter(&gLogger); |
29 PictureResultsMultiWriter gWriter; | 29 PictureResultsMultiWriter gWriter; |
30 | 30 |
31 // Flags used by this file, in alphabetical order. | 31 // Flags used by this file, in alphabetical order. |
32 DEFINE_bool(countRAM, false, "Count the RAM used for bitmap pixels in each skp f
ile"); | 32 DEFINE_bool(countRAM, false, "Count the RAM used for bitmap pixels in each skp f
ile"); |
33 DECLARE_bool(deferImageDecoding); | 33 DECLARE_bool(deferImageDecoding); |
34 DEFINE_string(filter, "", | 34 DEFINE_string(filter, "", |
35 "type:flag : Enable canvas filtering to disable a paint flag, " | 35 "type:flag : Enable canvas filtering to disable a paint flag, " |
36 "use no blur or low quality blur, or use no hinting or " | 36 "use no blur or low quality blur, or use no hinting or " |
37 "slight hinting. For all flags except AAClip, specify the " | 37 "slight hinting. For all flags except AAClip, specify the " |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 #endif | 456 #endif |
457 gWriter.end(); | 457 gWriter.end(); |
458 return 0; | 458 return 0; |
459 } | 459 } |
460 | 460 |
461 #if !defined SK_BUILD_FOR_IOS | 461 #if !defined SK_BUILD_FOR_IOS |
462 int main(int argc, char * const argv[]) { | 462 int main(int argc, char * const argv[]) { |
463 return tool_main(argc, (char**) argv); | 463 return tool_main(argc, (char**) argv); |
464 } | 464 } |
465 #endif | 465 #endif |
OLD | NEW |