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

Unified Diff: dm/DMReporter.h

Issue 788243008: Sketch DM refactor. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: better failure messages, disable a few things temporarily to try to go green Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dm/DMQuiltTask.cpp ('k') | dm/DMReporter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMReporter.h
diff --git a/dm/DMReporter.h b/dm/DMReporter.h
deleted file mode 100644
index f7803dc67fdd76687ab17d5e477b53ff119404ce..0000000000000000000000000000000000000000
--- a/dm/DMReporter.h
+++ /dev/null
@@ -1,36 +0,0 @@
-#ifndef DMReporter_DEFINED
-#define DMReporter_DEFINED
-
-#include "SkString.h"
-#include "SkTArray.h"
-#include "SkThread.h"
-#include "SkTime.h"
-#include "SkTypes.h"
-
-// Used to report status changes including failures. All public methods are threadsafe.
-namespace DM {
-
-class Reporter : SkNoncopyable {
-public:
- Reporter() : fPending(0), fFailed(0) {}
-
- void taskCreated() { sk_atomic_inc(&fPending); }
- void taskDestroyed() { sk_atomic_dec(&fPending); }
- void fail(SkString msg);
-
- void printStatus(SkString name, SkMSec timeMs) const;
-
- void getFailures(SkTArray<SkString>*) const;
-
-private:
- int32_t fPending; // atomic
- int32_t fFailed; // atomic, == fFailures.count().
-
- mutable SkMutex fMutex; // Guards fFailures.
- SkTArray<SkString> fFailures;
-};
-
-
-} // namespace DM
-
-#endif // DMReporter_DEFINED
« no previous file with comments | « dm/DMQuiltTask.cpp ('k') | dm/DMReporter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698