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

Unified Diff: include/core/SkPixelRef.h

Issue 143073008: add installPixels (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: new signature: PixelRefFactory to go along with installPixels Created 6 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
Index: include/core/SkPixelRef.h
diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h
index fc0feb042adb59a2e5ff002e5f181b3375d5a65a..a4a0f83adf34b2c5253112ecb2df783c0afdaefb 100644
--- a/include/core/SkPixelRef.h
+++ b/include/core/SkPixelRef.h
@@ -364,4 +364,14 @@ private:
typedef SkFlattenable INHERITED;
};
+class SkPixelRefFactory : public SkRefCnt {
+public:
+ /**
+ * Allocate a new pixelref matching the specified ImageInfo. If the
+ * ImageInfo requires a ColorTable, ref() the specified object.
+ * On failure return NULL.
+ */
+ virtual SkPixelRef* create(const SkImageInfo&, SkColorTable*) = 0;
+};
+
#endif
« no previous file with comments | « include/core/SkMallocPixelRef.h ('k') | src/core/SkBitmap.cpp » ('j') | src/core/SkBitmap.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698