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

Side by Side Diff: tests/Test.cpp

Issue 540013002: Revert of SkThreadPool ~~> SkTaskGroup (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« 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 * 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
78 virtual void bumpTestCount() SK_OVERRIDE { 82 virtual void bumpTestCount() SK_OVERRIDE {
79 fReporter->bumpTestCount(); 83 fReporter->bumpTestCount();
80 } 84 }
81 85
82 virtual bool verbose() const SK_OVERRIDE { 86 virtual bool verbose() const SK_OVERRIDE {
83 return fReporter->verbose(); 87 return fReporter->verbose();
84 } 88 }
85 89
86 private: 90 private:
87 Reporter* fReporter; // Unowned. 91 Reporter* fReporter; // Unowned.
(...skipping 21 matching lines...) Expand all
109 fReporter->reportFailed(local.failure(i)); 113 fReporter->reportFailed(local.failure(i));
110 } 114 }
111 fReporter->endTest(this); 115 fReporter->endTest(this);
112 116
113 } 117 }
114 118
115 SkString Test::GetTmpDir() { 119 SkString Test::GetTmpDir() {
116 const char* tmpDir = FLAGS_tmpDir.isEmpty() ? NULL : FLAGS_tmpDir[0]; 120 const char* tmpDir = FLAGS_tmpDir.isEmpty() ? NULL : FLAGS_tmpDir[0];
117 return SkString(tmpDir); 121 return SkString(tmpDir);
118 } 122 }
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