| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 #include "Test.h" | 8 #include "Test.h" |
| 9 | 9 |
| 10 #include "SkString.h" | 10 #include "SkString.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 } | 77 } |
| 78 | 78 |
| 79 virtual bool allowThreaded() const SK_OVERRIDE { | 79 virtual bool allowThreaded() const SK_OVERRIDE { |
| 80 return fReporter->allowThreaded(); | 80 return fReporter->allowThreaded(); |
| 81 } | 81 } |
| 82 | 82 |
| 83 virtual void bumpTestCount() SK_OVERRIDE { | 83 virtual void bumpTestCount() SK_OVERRIDE { |
| 84 fReporter->bumpTestCount(); | 84 fReporter->bumpTestCount(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 virtual bool verbose() const SK_OVERRIDE { |
| 88 return fReporter->verbose(); |
| 89 } |
| 90 |
| 87 private: | 91 private: |
| 88 Reporter* fReporter; // Unowned. | 92 Reporter* fReporter; // Unowned. |
| 89 SkTArray<SkString> fFailures; | 93 SkTArray<SkString> fFailures; |
| 90 }; | 94 }; |
| 91 } // namespace | 95 } // namespace |
| 92 | 96 |
| 93 void Test::run() { | 97 void Test::run() { |
| 94 // Clear the Skia error callback before running any test, to ensure that tes
ts | 98 // Clear the Skia error callback before running any test, to ensure that tes
ts |
| 95 // don't have unintended side effects when running more than one. | 99 // don't have unintended side effects when running more than one. |
| 96 SkSetErrorCallback( NULL, NULL ); | 100 SkSetErrorCallback( NULL, NULL ); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 127 #else | 131 #else |
| 128 return NULL; | 132 return NULL; |
| 129 #endif | 133 #endif |
| 130 } | 134 } |
| 131 | 135 |
| 132 void GpuTest::DestroyContexts() { | 136 void GpuTest::DestroyContexts() { |
| 133 #if SK_SUPPORT_GPU | 137 #if SK_SUPPORT_GPU |
| 134 gGrContextFactory.destroyContexts(); | 138 gGrContextFactory.destroyContexts(); |
| 135 #endif | 139 #endif |
| 136 } | 140 } |
| OLD | NEW |