| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "SkCommandLineFlags.h" | 8 #include "SkCommandLineFlags.h" |
| 9 #include "SkForceLinking.h" | 9 #include "SkForceLinking.h" |
| 10 #include "SkGraphics.h" | 10 #include "SkGraphics.h" |
| 11 #include "SkOSFile.h" | 11 #include "SkOSFile.h" |
| 12 #include "SkPicture.h" | 12 #include "SkPicture.h" |
| 13 #include "SkPictureRecorder.h" | 13 #include "SkPictureRecorder.h" |
| 14 #include "SkRecording.h" | |
| 15 #include "SkStream.h" | 14 #include "SkStream.h" |
| 16 #include "SkString.h" | 15 #include "SkString.h" |
| 17 | 16 |
| 17 #include "../include/record/SkRecording.h" |
| 18 |
| 18 #include "BenchTimer.h" | 19 #include "BenchTimer.h" |
| 19 #include "Stats.h" | 20 #include "Stats.h" |
| 20 | 21 |
| 21 typedef WallTimer Timer; | 22 typedef WallTimer Timer; |
| 22 | 23 |
| 23 __SK_FORCE_IMAGE_DECODER_LINKING; | 24 __SK_FORCE_IMAGE_DECODER_LINKING; |
| 24 | 25 |
| 25 DEFINE_string2(skps, r, "skps", "Directory containing SKPs to playback."); | 26 DEFINE_string2(skps, r, "skps", "Directory containing SKPs to playback."); |
| 26 DEFINE_int32(samples, 10, "Gather this many samples of each picture playback."); | 27 DEFINE_int32(samples, 10, "Gather this many samples of each picture playback."); |
| 27 DEFINE_bool(skr, false, "Play via SkRecord instead of SkPicture."); | 28 DEFINE_bool(skr, false, "Play via SkRecord instead of SkPicture."); |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 bench(scratch.get(), *src, filename.c_str()); | 147 bench(scratch.get(), *src, filename.c_str()); |
| 147 } | 148 } |
| 148 return failed ? 1 : 0; | 149 return failed ? 1 : 0; |
| 149 } | 150 } |
| 150 | 151 |
| 151 #if !defined SK_BUILD_FOR_IOS | 152 #if !defined SK_BUILD_FOR_IOS |
| 152 int main(int argc, char * const argv[]) { | 153 int main(int argc, char * const argv[]) { |
| 153 return tool_main(argc, (char**) argv); | 154 return tool_main(argc, (char**) argv); |
| 154 } | 155 } |
| 155 #endif | 156 #endif |
| OLD | NEW |