| 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 "nanobench.h" | 10 #include "nanobench.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "SkForceLinking.h" | 34 #include "SkForceLinking.h" |
| 35 #include "SkGraphics.h" | 35 #include "SkGraphics.h" |
| 36 #include "SkOSFile.h" | 36 #include "SkOSFile.h" |
| 37 #include "SkPictureRecorder.h" | 37 #include "SkPictureRecorder.h" |
| 38 #include "SkPictureUtils.h" | 38 #include "SkPictureUtils.h" |
| 39 #include "SkScanlineDecoder.h" | 39 #include "SkScanlineDecoder.h" |
| 40 #include "SkString.h" | 40 #include "SkString.h" |
| 41 #include "SkSurface.h" | 41 #include "SkSurface.h" |
| 42 #include "SkTaskGroup.h" | 42 #include "SkTaskGroup.h" |
| 43 | 43 |
| 44 #include <stdlib.h> |
| 45 |
| 44 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK | 46 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK |
| 45 #include "nanobenchAndroid.h" | 47 #include "nanobenchAndroid.h" |
| 46 #endif | 48 #endif |
| 47 | 49 |
| 48 #if SK_SUPPORT_GPU | 50 #if SK_SUPPORT_GPU |
| 49 #include "gl/GrGLDefines.h" | 51 #include "gl/GrGLDefines.h" |
| 50 #include "GrCaps.h" | 52 #include "GrCaps.h" |
| 51 #include "GrContextFactory.h" | 53 #include "GrContextFactory.h" |
| 52 SkAutoTDelete<GrContextFactory> gGrFactory; | 54 SkAutoTDelete<GrContextFactory> gGrFactory; |
| 53 #endif | 55 #endif |
| (...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1156 | 1158 |
| 1157 return 0; | 1159 return 0; |
| 1158 } | 1160 } |
| 1159 | 1161 |
| 1160 #if !defined SK_BUILD_FOR_IOS | 1162 #if !defined SK_BUILD_FOR_IOS |
| 1161 int main(int argc, char** argv) { | 1163 int main(int argc, char** argv) { |
| 1162 SkCommandLineFlags::Parse(argc, argv); | 1164 SkCommandLineFlags::Parse(argc, argv); |
| 1163 return nanobench_main(); | 1165 return nanobench_main(); |
| 1164 } | 1166 } |
| 1165 #endif | 1167 #endif |
| OLD | NEW |