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

Side by Side Diff: bench/nanobench.cpp

Issue 670453002: Remove image decoder and encoder autoregistration (Closed) Base URL: https://skia.googlesource.com/skia.git@separate-image-decoder-01-skpicture
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « bench/SkipZeroesBench.cpp ('k') | debugger/QT/SkDebuggerGUI.cpp » ('j') | 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 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
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
OLDNEW
« no previous file with comments | « bench/SkipZeroesBench.cpp ('k') | debugger/QT/SkDebuggerGUI.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698