| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "BenchTimer.h" | 8 #include "BenchTimer.h" |
| 9 #include "Benchmark.h" |
| 9 #include "LazyDecodeBitmap.h" | 10 #include "LazyDecodeBitmap.h" |
| 10 #include "PictureBenchmark.h" | 11 #include "PictureBenchmark.h" |
| 11 #include "PictureRenderer.h" | 12 #include "PictureRenderer.h" |
| 12 #include "SkBenchmark.h" | 13 #include "SkCommandLineFlags.h" |
| 13 #include "SkForceLinking.h" | 14 #include "SkForceLinking.h" |
| 14 #include "SkGraphics.h" | 15 #include "SkGraphics.h" |
| 15 #include "SkStream.h" | 16 #include "SkStream.h" |
| 16 #include "SkString.h" | 17 #include "SkString.h" |
| 17 #include "SkTArray.h" | 18 #include "SkTArray.h" |
| 18 #include "SkCommandLineFlags.h" | |
| 19 | 19 |
| 20 typedef sk_tools::PictureRenderer::BBoxHierarchyType BBoxType; | 20 typedef sk_tools::PictureRenderer::BBoxHierarchyType BBoxType; |
| 21 static const int kBBoxTypeCount = sk_tools::PictureRenderer::kLast_BBoxHierarchy
Type + 1; | 21 static const int kBBoxTypeCount = sk_tools::PictureRenderer::kLast_BBoxHierarchy
Type + 1; |
| 22 | 22 |
| 23 | 23 |
| 24 DEFINE_string2(skps, r, "", "The list of SKPs to benchmark."); | 24 DEFINE_string2(skps, r, "", "The list of SKPs to benchmark."); |
| 25 DEFINE_string(bb_types, "", "The set of bbox types to test. If empty, all are te
sted. " | 25 DEFINE_string(bb_types, "", "The set of bbox types to test. If empty, all are te
sted. " |
| 26 "Should be one or more of none, quadtree, rtree, tilegrid
."); | 26 "Should be one or more of none, quadtree, rtree, tilegrid
."); |
| 27 DEFINE_int32(record, 100, "Number of times to record each SKP."); | 27 DEFINE_int32(record, 100, "Number of times to record each SKP."); |
| 28 DEFINE_int32(playback, 1, "Number of times to playback each SKP."); | 28 DEFINE_int32(playback, 1, "Number of times to playback each SKP."); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 } | 185 } |
| 186 SkDebugf("\nWrote data to gnuplot-readable files: %s %s\n", pbTitle, recTitl
e); | 186 SkDebugf("\nWrote data to gnuplot-readable files: %s %s\n", pbTitle, recTitl
e); |
| 187 return 0; | 187 return 0; |
| 188 } | 188 } |
| 189 | 189 |
| 190 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 190 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 191 int main(int argc, char** argv) { | 191 int main(int argc, char** argv) { |
| 192 return tool_main(argc, argv); | 192 return tool_main(argc, argv); |
| 193 } | 193 } |
| 194 #endif | 194 #endif |
| OLD | NEW |