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

Side by Side Diff: dm/DMReporter.cpp

Issue 22839016: Skeleton of DM (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: one last sync 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/DMReporter.h ('k') | dm/DMTask.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #include "DMReporter.h"
2
3 namespace DM {
4
5 void Reporter::updateStatusLine() const {
6 SkDebugf("\r\033[K%d / %d, %d failed", this->finished(), this->started(), th is->failed());
7 }
8
9 int32_t Reporter::failed() const {
10 SkAutoMutexAcquire reader(&fMutex);
11 return fFailures.count();
12 }
13
14 void Reporter::fail(SkString name) {
15 SkAutoMutexAcquire writer(&fMutex);
16 fFailures.push_back(name);
17 }
18
19 void Reporter::getFailures(SkTArray<SkString>* failures) const {
20 SkAutoMutexAcquire reader(&fMutex);
21 *failures = fFailures;
22 }
23
24 } // namespace DM
OLDNEW
« no previous file with comments | « dm/DMReporter.h ('k') | dm/DMTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698