| 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
|
|
|