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 24 matching lines...) Expand all Loading... |
35 #include "SkOSFile.h" | 35 #include "SkOSFile.h" |
36 #include "SkPictureRecorder.h" | 36 #include "SkPictureRecorder.h" |
37 #include "SkPictureUtils.h" | 37 #include "SkPictureUtils.h" |
38 #include "SkString.h" | 38 #include "SkString.h" |
39 #include "SkSurface.h" | 39 #include "SkSurface.h" |
40 #include "SkTaskGroup.h" | 40 #include "SkTaskGroup.h" |
41 #include "SkThreadUtils.h" | 41 #include "SkThreadUtils.h" |
42 | 42 |
43 #include <stdlib.h> | 43 #include <stdlib.h> |
44 | 44 |
| 45 #ifndef SK_BUILD_FOR_WIN32 |
| 46 #include <unistd.h> |
| 47 #endif |
| 48 |
45 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK | 49 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK |
46 #include "nanobenchAndroid.h" | 50 #include "nanobenchAndroid.h" |
47 #endif | 51 #endif |
48 | 52 |
49 #if SK_SUPPORT_GPU | 53 #if SK_SUPPORT_GPU |
50 #include "gl/GrGLDefines.h" | 54 #include "gl/GrGLDefines.h" |
51 #include "GrCaps.h" | 55 #include "GrCaps.h" |
52 #include "GrContextFactory.h" | 56 #include "GrContextFactory.h" |
53 SkAutoTDelete<GrContextFactory> gGrFactory; | 57 SkAutoTDelete<GrContextFactory> gGrFactory; |
54 #endif | 58 #endif |
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1223 | 1227 |
1224 return 0; | 1228 return 0; |
1225 } | 1229 } |
1226 | 1230 |
1227 #if !defined SK_BUILD_FOR_IOS | 1231 #if !defined SK_BUILD_FOR_IOS |
1228 int main(int argc, char** argv) { | 1232 int main(int argc, char** argv) { |
1229 SkCommandLineFlags::Parse(argc, argv); | 1233 SkCommandLineFlags::Parse(argc, argv); |
1230 return nanobench_main(); | 1234 return nanobench_main(); |
1231 } | 1235 } |
1232 #endif | 1236 #endif |
OLD | NEW |