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

Unified Diff: include/core/SkPixelRef.h

Issue 23021015: Initial error handling code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: New serialization method Created 7 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 side-by-side diff with in-line comments
Download patch
Index: include/core/SkPixelRef.h
diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h
index 64e08765bed8a3c1e1b9f3f1a652e9959b0a1865..8483c542eef5535942d568784a24c5aa09609096 100644
--- a/include/core/SkPixelRef.h
+++ b/include/core/SkPixelRef.h
@@ -45,6 +45,8 @@ class GrTexture;
This class can be shared/accessed between multiple threads.
*/
class SK_API SkPixelRef : public SkFlattenable {
+ typedef SkFlattenable INHERITED;
+
public:
SK_DECLARE_INST_COUNT(SkPixelRef)
@@ -207,6 +209,8 @@ public:
virtual void globalUnref();
#endif
+ SK_DEFINE_FLATTENABLE_TYPE(SkPixelRef)
+
protected:
/** Called when the lockCount goes from 0 to 1. The caller will have already
acquire a mutex for thread safety, so this method need not do that.
@@ -272,8 +276,6 @@ private:
bool fPreLocked;
void setMutex(SkBaseMutex* mutex);
-
- typedef SkFlattenable INHERITED;
};
#endif

Powered by Google App Engine
This is Rietveld 408576698