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

Side by Side Diff: dm/DMReporter.cpp

Issue 29293003: DM: add --writePath (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: directory per config Created 7 years, 2 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 | « dm/DMReplayTask.cpp ('k') | dm/DMWriteTask.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "DMReporter.h" 1 #include "DMReporter.h"
2 2
3 namespace DM { 3 namespace DM {
4 4
5 void Reporter::updateStatusLine() const { 5 void Reporter::updateStatusLine() const {
6 SkDebugf("\r\033[K%d / %d, %d failed", this->finished(), this->started(), th is->failed()); 6 SkString status;
7 status.printf("\r\033[K%d / %d", this->finished(), this->started());
8 const int failed = this->failed();
9 if (failed > 0) {
10 status.appendf(", %d failed", failed);
11 }
12 SkDebugf(status.c_str());
7 } 13 }
8 14
9 int32_t Reporter::failed() const { 15 int32_t Reporter::failed() const {
10 SkAutoMutexAcquire reader(&fMutex); 16 SkAutoMutexAcquire reader(&fMutex);
11 return fFailures.count(); 17 return fFailures.count();
12 } 18 }
13 19
14 void Reporter::fail(SkString name) { 20 void Reporter::fail(SkString name) {
15 SkAutoMutexAcquire writer(&fMutex); 21 SkAutoMutexAcquire writer(&fMutex);
16 fFailures.push_back(name); 22 fFailures.push_back(name);
17 } 23 }
18 24
19 void Reporter::getFailures(SkTArray<SkString>* failures) const { 25 void Reporter::getFailures(SkTArray<SkString>* failures) const {
20 SkAutoMutexAcquire reader(&fMutex); 26 SkAutoMutexAcquire reader(&fMutex);
21 *failures = fFailures; 27 *failures = fFailures;
22 } 28 }
23 29
24 } // namespace DM 30 } // namespace DM
OLDNEW
« no previous file with comments | « dm/DMReplayTask.cpp ('k') | dm/DMWriteTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698