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

Unified Diff: include/core/SkFlattenableBuffers.h

Issue 23021015: Initial error handling code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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
Index: include/core/SkFlattenableBuffers.h
diff --git a/include/core/SkFlattenableBuffers.h b/include/core/SkFlattenableBuffers.h
index 03c03f3877e6f8e3f508d29e371d5c7ebd91624e..ef080cf5c374805291a8018ccac535f484a5545d 100644
--- a/include/core/SkFlattenableBuffers.h
+++ b/include/core/SkFlattenableBuffers.h
@@ -10,6 +10,7 @@
#define SkFlattenableBuffers_DEFINED
#include "SkColor.h"
+#include "SkError.h"
#include "SkPaint.h"
#include "SkPoint.h"
@@ -102,6 +103,13 @@ public:
return static_cast<T*>(this->readFlattenable());
}
+ void setError(SkError error) {
+ fError = static_cast<SkError>(fError | error);
+ }
+
+protected:
+ SkError fError;
+
private:
uint32_t fFlags;
};

Powered by Google App Engine
This is Rietveld 408576698