| 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; | |
| 28 | 27 |
| 29 DEFINE_bool2(extendedTest, x, false, "run extended tests for pathOps."); | 28 DEFINE_bool2(extendedTest, x, false, "run extended tests for pathOps."); |
| 30 | 29 |
| 31 // need to explicitly declare this, or we get some weird infinite loop llist | 30 // need to explicitly declare this, or we get some weird infinite loop llist |
| 32 template TestRegistry* TestRegistry::gHead; | 31 template TestRegistry* TestRegistry::gHead; |
| 33 void (*gVerboseFinalize)() = nullptr; | 32 void (*gVerboseFinalize)() = nullptr; |
| 34 | 33 |
| 35 // The threads report back to this object when they are done. | 34 // The threads report back to this object when they are done. |
| 36 class Status { | 35 class Status { |
| 37 public: | 36 public: |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 SkDebugf("\n"); | 220 SkDebugf("\n"); |
| 222 return (status.failCount() == 0) ? 0 : 1; | 221 return (status.failCount() == 0) ? 0 : 1; |
| 223 } | 222 } |
| 224 | 223 |
| 225 #if !defined(SK_BUILD_FOR_IOS) | 224 #if !defined(SK_BUILD_FOR_IOS) |
| 226 int main(int argc, char** argv) { | 225 int main(int argc, char** argv) { |
| 227 SkCommandLineFlags::Parse(argc, argv); | 226 SkCommandLineFlags::Parse(argc, argv); |
| 228 return test_main(); | 227 return test_main(); |
| 229 } | 228 } |
| 230 #endif | 229 #endif |
| OLD | NEW |