OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 "CrashHandler.h" | 8 #include "CrashHandler.h" |
9 #include "OverwriteLine.h" | 9 #include "OverwriteLine.h" |
10 #include "Resources.h" | 10 #include "Resources.h" |
11 #include "SkAtomics.h" | 11 #include "SkAtomics.h" |
12 #include "SkCommonFlags.h" | 12 #include "SkCommonFlags.h" |
13 #include "SkGraphics.h" | 13 #include "SkGraphics.h" |
14 #include "SkOSFile.h" | 14 #include "SkOSFile.h" |
15 #include "SkTArray.h" | 15 #include "SkTArray.h" |
16 #include "SkTaskGroup.h" | 16 #include "SkTaskGroup.h" |
17 #include "SkTemplates.h" | 17 #include "SkTemplates.h" |
18 #include "SkTime.h" | 18 #include "SkTime.h" |
19 #include "Test.h" | 19 #include "Test.h" |
20 | 20 |
21 #if SK_SUPPORT_GPU | 21 #if SK_SUPPORT_GPU |
22 #include "GrContext.h" | 22 #include "GrContext.h" |
23 #include "GrContextFactory.h" | 23 #include "GrContextFactory.h" |
24 #endif | 24 #endif |
25 | 25 |
26 using namespace skiatest; | 26 using namespace skiatest; |
| 27 using namespace sk_gpu_test; |
27 | 28 |
28 DEFINE_bool2(extendedTest, x, false, "run extended tests for pathOps."); | 29 DEFINE_bool2(extendedTest, x, false, "run extended tests for pathOps."); |
29 | 30 |
30 // need to explicitly declare this, or we get some weird infinite loop llist | 31 // need to explicitly declare this, or we get some weird infinite loop llist |
31 template TestRegistry* TestRegistry::gHead; | 32 template TestRegistry* TestRegistry::gHead; |
32 void (*gVerboseFinalize)() = nullptr; | 33 void (*gVerboseFinalize)() = nullptr; |
33 | 34 |
34 // The threads report back to this object when they are done. | 35 // The threads report back to this object when they are done. |
35 class Status { | 36 class Status { |
36 public: | 37 public: |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 SkDebugf("\n"); | 221 SkDebugf("\n"); |
221 return (status.failCount() == 0) ? 0 : 1; | 222 return (status.failCount() == 0) ? 0 : 1; |
222 } | 223 } |
223 | 224 |
224 #if !defined(SK_BUILD_FOR_IOS) | 225 #if !defined(SK_BUILD_FOR_IOS) |
225 int main(int argc, char** argv) { | 226 int main(int argc, char** argv) { |
226 SkCommandLineFlags::Parse(argc, argv); | 227 SkCommandLineFlags::Parse(argc, argv); |
227 return test_main(); | 228 return test_main(); |
228 } | 229 } |
229 #endif | 230 #endif |
OLD | NEW |