| Index: include/core/SkImage.h
|
| diff --git a/include/core/SkImage.h b/include/core/SkImage.h
|
| index 581129e7207fd58a3311f9d161a372a6eefdd46a..1316e2b595e9814749a0867e083a48be61196f98 100644
|
| --- a/include/core/SkImage.h
|
| +++ b/include/core/SkImage.h
|
| @@ -16,6 +16,7 @@
|
|
|
| class SkData;
|
| class SkCanvas;
|
| +class SkImageGenerator;
|
| class SkPaint;
|
| class GrContext;
|
| class GrTexture;
|
| @@ -47,6 +48,13 @@ public:
|
| */
|
| static SkImage* NewTexture(const SkBitmap&);
|
|
|
| + /**
|
| + * Construct a new SkImage based on the given ImageGenerator.
|
| + * This function will always take ownership of the passed
|
| + * ImageGenerator. Returns NULL on error.
|
| + */
|
| + static SkImage* NewFromGenerator(SkImageGenerator*);
|
| +
|
| int width() const { return fWidth; }
|
| int height() const { return fHeight; }
|
| uint32_t uniqueID() const { return fUniqueID; }
|
|
|