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

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, 2 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
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 "SkBBHFactory.h" 20 #include "SkBBHFactory.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 "SkImageEncoder.h" 24 #include "SkImageEncoder.h"
26 #include "SkOSFile.h" 25 #include "SkOSFile.h"
27 #include "SkPictureRecorder.h" 26 #include "SkPictureRecorder.h"
28 #include "SkString.h" 27 #include "SkString.h"
29 #include "SkSurface.h" 28 #include "SkSurface.h"
30 29
31 #if SK_SUPPORT_GPU 30 #if SK_SUPPORT_GPU
32 #include "gl/GrGLDefines.h" 31 #include "gl/GrGLDefines.h"
33 #include "GrContextFactory.h" 32 #include "GrContextFactory.h"
34 SkAutoTDelete<GrContextFactory> gGrFactory; 33 SkAutoTDelete<GrContextFactory> gGrFactory;
35 #endif 34 #endif
36 35
37 __SK_FORCE_IMAGE_DECODER_LINKING;
38
39 static const int kAutoTuneLoops = 0; 36 static const int kAutoTuneLoops = 0;
40 37
41 static const int kDefaultLoops = 38 static const int kDefaultLoops =
42 #ifdef SK_DEBUG 39 #ifdef SK_DEBUG
43 1; 40 1;
44 #else 41 #else
45 kAutoTuneLoops; 42 kAutoTuneLoops;
46 #endif 43 #endif
47 44
48 static SkString loops_help_txt() { 45 static SkString loops_help_txt() {
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 732
736 return 0; 733 return 0;
737 } 734 }
738 735
739 #if !defined SK_BUILD_FOR_IOS 736 #if !defined SK_BUILD_FOR_IOS
740 int main(int argc, char** argv) { 737 int main(int argc, char** argv) {
741 SkCommandLineFlags::Parse(argc, argv); 738 SkCommandLineFlags::Parse(argc, argv);
742 return nanobench_main(); 739 return nanobench_main();
743 } 740 }
744 #endif 741 #endif
OLDNEW
« no previous file with comments | « bench/SkipZeroesBench.cpp ('k') | debugger/QT/SkDebuggerGUI.cpp » ('j') | gyp/images.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698