Chromium Code Reviews| Index: include/core/SkImage.h |
| diff --git a/include/core/SkImage.h b/include/core/SkImage.h |
| index 581129e7207fd58a3311f9d161a372a6eefdd46a..b1827f5e5c9a7f324efca3b25b1d04fe37453fc9 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,14 @@ 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*); |
| + |
|
reed1
2014/08/12 14:49:04
tiny nit: 2 lines blank?
hal.canary
2014/08/12 14:55:19
Done.
|
| + |
| int width() const { return fWidth; } |
| int height() const { return fHeight; } |
| uint32_t uniqueID() const { return fUniqueID; } |