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

Side by Side Diff: tools/kilobench/kilobench.cpp

Issue 1760583003: Remove unused tools and unused includes of SkImageDecoder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « tools/json/SkJSONRenderer.cpp ('k') | tools/lua/lua_pictures.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 2016 Google Inc. 2 * Copyright 2016 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 "GrCaps.h" 8 #include "GrCaps.h"
9 #include "GrContextFactory.h" 9 #include "GrContextFactory.h"
10 #include "Benchmark.h" 10 #include "Benchmark.h"
(...skipping 16 matching lines...) Expand all
27 // posix only for now 27 // posix only for now
28 #include <unistd.h> 28 #include <unistd.h>
29 #include <sys/types.h> 29 #include <sys/types.h>
30 #include <sys/wait.h> 30 #include <sys/wait.h>
31 31
32 /* 32 /*
33 * This is an experimental GPU only benchmarking program. The initial implement ation will only 33 * This is an experimental GPU only benchmarking program. The initial implement ation will only
34 * support SKPs. 34 * support SKPs.
35 */ 35 */
36 36
37 // To get image decoders linked in we have to do the below magic
38 #include "SkForceLinking.h"
39 #include "SkImageDecoder.h"
40 __SK_FORCE_IMAGE_DECODER_LINKING;
41
42 static const int kAutoTuneLoops = 0; 37 static const int kAutoTuneLoops = 0;
43 38
44 static const int kDefaultLoops = 39 static const int kDefaultLoops =
45 #ifdef SK_DEBUG 40 #ifdef SK_DEBUG
46 1; 41 1;
47 #else 42 #else
48 kAutoTuneLoops; 43 kAutoTuneLoops;
49 #endif 44 #endif
50 45
51 static SkString loops_help_txt() { 46 static SkString loops_help_txt() {
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 } 650 }
656 return 0; 651 return 0;
657 } 652 }
658 653
659 #if !defined SK_BUILD_FOR_IOS 654 #if !defined SK_BUILD_FOR_IOS
660 int main(int argc, char** argv) { 655 int main(int argc, char** argv) {
661 SkCommandLineFlags::Parse(argc, argv); 656 SkCommandLineFlags::Parse(argc, argv);
662 return kilobench_main(); 657 return kilobench_main();
663 } 658 }
664 #endif 659 #endif
OLDNEW
« no previous file with comments | « tools/json/SkJSONRenderer.cpp ('k') | tools/lua/lua_pictures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698