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

Side by Side Diff: tests/Test.cpp

Issue 14063005: add extended option to Test (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 months 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/Test.h ('k') | tests/skia_test.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 "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
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 }
OLDNEW
« no previous file with comments | « tests/Test.h ('k') | tests/skia_test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698