Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: tools/bbh_shootout.cpp

Issue 23478013: Major bench refactoring. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: merge with head agani Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gyp/bench.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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(10); 20 static const int kNumNormalRecordings = 10;
21 static const int kNumRTreeRecordings = SkBENCHLOOP(10); 21 static const int kNumRTreeRecordings = 10;
22 static const int kNumPlaybacks = SkBENCHLOOP(1); 22 static const int kNumPlaybacks = 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,
31 }; 31 };
32 32
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « gyp/bench.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698