| 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 "SkTLazy.h" | 10 #include "SkTLazy.h" |
| 11 | 11 |
| 12 #if SK_SUPPORT_GPU | 12 #if SK_SUPPORT_GPU |
| 13 #include "GrContext.h" | 13 #include "GrContext.h" |
| 14 #include "gl/SkNativeGLContext.h" | 14 #include "gl/SkNativeGLContext.h" |
| 15 #else | 15 #else |
| 16 class GrContext; | 16 class GrContext; |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 SK_DEFINE_INST_COUNT(skiatest::Reporter) | 19 SK_DEFINE_INST_COUNT(skiatest::Reporter) |
| 20 | 20 |
| 21 using namespace skiatest; | 21 using namespace skiatest; |
| 22 | 22 |
| 23 Reporter::Reporter() { | 23 Reporter::Reporter() |
| 24 : fTestCount(0) { |
| 24 this->resetReporting(); | 25 this->resetReporting(); |
| 25 } | 26 } |
| 26 | 27 |
| 27 void Reporter::resetReporting() { | 28 void Reporter::resetReporting() { |
| 28 fCurrTest = NULL; | 29 fCurrTest = NULL; |
| 29 fTestCount = 0; | 30 fTestCount = 0; |
| 30 sk_bzero(fResultCount, sizeof(fResultCount)); | 31 sk_bzero(fResultCount, sizeof(fResultCount)); |
| 31 } | 32 } |
| 32 | 33 |
| 33 void Reporter::startTest(Test* test) { | 34 void Reporter::startTest(Test* test) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 #else | 95 #else |
| 95 return NULL; | 96 return NULL; |
| 96 #endif | 97 #endif |
| 97 } | 98 } |
| 98 | 99 |
| 99 void GpuTest::DestroyContexts() { | 100 void GpuTest::DestroyContexts() { |
| 100 #if SK_SUPPORT_GPU | 101 #if SK_SUPPORT_GPU |
| 101 gGrContextFactory.destroyContexts(); | 102 gGrContextFactory.destroyContexts(); |
| 102 #endif | 103 #endif |
| 103 } | 104 } |
| OLD | NEW |