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 "LazyDecodeBitmap.h" | 9 #include "LazyDecodeBitmap.h" |
10 #include "PictureBenchmark.h" | 10 #include "PictureBenchmark.h" |
11 #include "PictureRenderer.h" | 11 #include "PictureRenderer.h" |
12 #include "SkBenchmark.h" | 12 #include "SkBenchmark.h" |
13 #include "SkForceLinking.h" | 13 #include "SkForceLinking.h" |
14 #include "SkGraphics.h" | 14 #include "SkGraphics.h" |
15 #include "SkStream.h" | 15 #include "SkStream.h" |
16 #include "SkString.h" | 16 #include "SkString.h" |
17 #include "SkTArray.h" | 17 #include "SkTArray.h" |
18 #include "TimerData.h" | 18 #include "TimerData.h" |
19 | 19 |
20 static const int kNumNormalRecordings = SkBENCHLOOP(0); | 20 static const int kNumNormalRecordings = SkBENCHLOOP(10); |
21 static const int kNumRTreeRecordings = SkBENCHLOOP(10); | 21 static const int kNumRTreeRecordings = SkBENCHLOOP(10); |
22 static const int kNumPlaybacks = SkBENCHLOOP(1); | 22 static const int kNumPlaybacks = SkBENCHLOOP(1); |
23 static const size_t kNumBaseBenchmarks = 3; | 23 static const size_t kNumBaseBenchmarks = 3; |
24 static const size_t kNumTileSizes = 3; | 24 static const size_t kNumTileSizes = 3; |
25 static const size_t kNumBbhPlaybackBenchmarks = 3; | 25 static const size_t kNumBbhPlaybackBenchmarks = 3; |
26 static const size_t kNumBenchmarks = kNumBaseBenchmarks + kNumBbhPlaybackBenchma
rks; | 26 static const size_t kNumBenchmarks = kNumBaseBenchmarks + kNumBbhPlaybackBenchma
rks; |
27 | 27 |
28 enum BenchmarkType { | 28 enum BenchmarkType { |
29 kNormal_BenchmarkType = 0, | 29 kNormal_BenchmarkType = 0, |
30 kRTree_BenchmarkType, | 30 kRTree_BenchmarkType, |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 SkDebugf("\nWrote data to gnuplot-readable files: %s %s\n", pbTitle, recTitl
e); | 431 SkDebugf("\nWrote data to gnuplot-readable files: %s %s\n", pbTitle, recTitl
e); |
432 | 432 |
433 return 0; | 433 return 0; |
434 } | 434 } |
435 | 435 |
436 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 436 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
437 int main(int argc, char** argv) { | 437 int main(int argc, char** argv) { |
438 return tool_main(argc, argv); | 438 return tool_main(argc, argv); |
439 } | 439 } |
440 #endif | 440 #endif |
OLD | NEW |