Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: tests/Test.cpp

Issue 98703002: Fix compilation with SK_ENABLE_INST_COUNT=1 (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/RefDictTest.cpp ('k') | tests/UtilsTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "SkTArray.h" 11 #include "SkTArray.h"
12 #include "SkTime.h" 12 #include "SkTime.h"
13 #include "SkError.h" 13 #include "SkError.h"
14 14
15 #if SK_SUPPORT_GPU 15 #if SK_SUPPORT_GPU
16 #include "GrContext.h" 16 #include "GrContext.h"
17 #include "gl/SkNativeGLContext.h" 17 #include "gl/SkNativeGLContext.h"
18 #else 18 #else
19 class GrContext; 19 class GrContext;
20 #endif 20 #endif
21 21
22 SK_DEFINE_INST_COUNT(skiatest::Reporter)
23
24 using namespace skiatest; 22 using namespace skiatest;
25 23
26 Reporter::Reporter() : fTestCount(0) { 24 Reporter::Reporter() : fTestCount(0) {
27 } 25 }
28 26
29 void Reporter::startTest(Test* test) { 27 void Reporter::startTest(Test* test) {
30 this->bumpTestCount(); 28 this->bumpTestCount();
31 this->onStart(test); 29 this->onStart(test);
32 } 30 }
33 31
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 #else 129 #else
132 return NULL; 130 return NULL;
133 #endif 131 #endif
134 } 132 }
135 133
136 void GpuTest::DestroyContexts() { 134 void GpuTest::DestroyContexts() {
137 #if SK_SUPPORT_GPU 135 #if SK_SUPPORT_GPU
138 gGrContextFactory.destroyContexts(); 136 gGrContextFactory.destroyContexts();
139 #endif 137 #endif
140 } 138 }
OLDNEW
« no previous file with comments | « tests/RefDictTest.cpp ('k') | tests/UtilsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698