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

Side by Side Diff: tests/Test.cpp

Issue 531653002: SkThreadPool ~~> SkTaskGroup (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cleanup allowThreaded() Created 6 years, 3 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
OLDNEW
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 "Test.h" 8 #include "Test.h"
9 9
10 #include "SkCommandLineFlags.h" 10 #include "SkCommandLineFlags.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 protected: 68 protected:
69 virtual void onReportFailed(const SkString& desc) SK_OVERRIDE { 69 virtual void onReportFailed(const SkString& desc) SK_OVERRIDE {
70 fFailures.push_back(desc); 70 fFailures.push_back(desc);
71 } 71 }
72 72
73 // Proxy down to fReporter. We assume these calls are threadsafe. 73 // Proxy down to fReporter. We assume these calls are threadsafe.
74 virtual bool allowExtendedTest() const SK_OVERRIDE { 74 virtual bool allowExtendedTest() const SK_OVERRIDE {
75 return fReporter->allowExtendedTest(); 75 return fReporter->allowExtendedTest();
76 } 76 }
77 77
78 virtual bool allowThreaded() const SK_OVERRIDE {
79 return fReporter->allowThreaded();
80 }
81
82 virtual void bumpTestCount() SK_OVERRIDE { 78 virtual void bumpTestCount() SK_OVERRIDE {
83 fReporter->bumpTestCount(); 79 fReporter->bumpTestCount();
84 } 80 }
85 81
86 virtual bool verbose() const SK_OVERRIDE { 82 virtual bool verbose() const SK_OVERRIDE {
87 return fReporter->verbose(); 83 return fReporter->verbose();
88 } 84 }
89 85
90 private: 86 private:
91 Reporter* fReporter; // Unowned. 87 Reporter* fReporter; // Unowned.
(...skipping 21 matching lines...) Expand all
113 fReporter->reportFailed(local.failure(i)); 109 fReporter->reportFailed(local.failure(i));
114 } 110 }
115 fReporter->endTest(this); 111 fReporter->endTest(this);
116 112
117 } 113 }
118 114
119 SkString Test::GetTmpDir() { 115 SkString Test::GetTmpDir() {
120 const char* tmpDir = FLAGS_tmpDir.isEmpty() ? NULL : FLAGS_tmpDir[0]; 116 const char* tmpDir = FLAGS_tmpDir.isEmpty() ? NULL : FLAGS_tmpDir[0];
121 return SkString(tmpDir); 117 return SkString(tmpDir);
122 } 118 }
OLDNEW
« src/utils/SkRunnable.h ('K') | « tests/Test.h ('k') | tests/skia_test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698