| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |