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 <ctype.h> | 8 #include <ctype.h> |
9 | 9 |
10 #include "Benchmark.h" | 10 #include "Benchmark.h" |
11 #include "CrashHandler.h" | 11 #include "CrashHandler.h" |
12 #include "GMBench.h" | 12 #include "GMBench.h" |
13 #include "ProcStats.h" | 13 #include "ProcStats.h" |
14 #include "ResultsWriter.h" | 14 #include "ResultsWriter.h" |
15 #include "RecordingBench.h" | 15 #include "RecordingBench.h" |
16 #include "SKPBench.h" | 16 #include "SKPBench.h" |
17 #include "Stats.h" | 17 #include "Stats.h" |
18 #include "Timer.h" | 18 #include "Timer.h" |
19 | 19 |
20 #include "SkBBoxHierarchy.h" | 20 #include "SkBBoxHierarchy.h" |
21 #include "SkCanvas.h" | 21 #include "SkCanvas.h" |
22 #include "SkCommonFlags.h" | 22 #include "SkCommonFlags.h" |
23 #include "SkForceLinking.h" | |
24 #include "SkGraphics.h" | 23 #include "SkGraphics.h" |
25 #include "SkOSFile.h" | 24 #include "SkOSFile.h" |
26 #include "SkPictureRecorder.h" | 25 #include "SkPictureRecorder.h" |
27 #include "SkString.h" | 26 #include "SkString.h" |
28 #include "SkSurface.h" | 27 #include "SkSurface.h" |
29 | 28 |
30 #if SK_SUPPORT_GPU | 29 #if SK_SUPPORT_GPU |
31 #include "gl/GrGLDefines.h" | 30 #include "gl/GrGLDefines.h" |
32 #include "GrContextFactory.h" | 31 #include "GrContextFactory.h" |
33 SkAutoTDelete<GrContextFactory> gGrFactory; | 32 SkAutoTDelete<GrContextFactory> gGrFactory; |
34 #endif | 33 #endif |
35 | 34 |
36 __SK_FORCE_IMAGE_DECODER_LINKING; | |
37 | |
38 static const int kAutoTuneLoops = 0; | 35 static const int kAutoTuneLoops = 0; |
39 | 36 |
40 static const int kDefaultLoops = | 37 static const int kDefaultLoops = |
41 #ifdef SK_DEBUG | 38 #ifdef SK_DEBUG |
42 1; | 39 1; |
43 #else | 40 #else |
44 kAutoTuneLoops; | 41 kAutoTuneLoops; |
45 #endif | 42 #endif |
46 | 43 |
47 static SkString loops_help_txt() { | 44 static SkString loops_help_txt() { |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 | 748 |
752 return 0; | 749 return 0; |
753 } | 750 } |
754 | 751 |
755 #if !defined SK_BUILD_FOR_IOS | 752 #if !defined SK_BUILD_FOR_IOS |
756 int main(int argc, char** argv) { | 753 int main(int argc, char** argv) { |
757 SkCommandLineFlags::Parse(argc, argv); | 754 SkCommandLineFlags::Parse(argc, argv); |
758 return nanobench_main(); | 755 return nanobench_main(); |
759 } | 756 } |
760 #endif | 757 #endif |
OLD | NEW |