Index: include/core/SkImageGenerator.h |
diff --git a/include/core/SkImageGenerator.h b/include/core/SkImageGenerator.h |
index 46aea7b81ede46a0dcaad6ec094cf5ed59ada6f7..83f36e09a7603caa55acc10e969e2ef412bdaa88 100644 |
--- a/include/core/SkImageGenerator.h |
+++ b/include/core/SkImageGenerator.h |
@@ -14,6 +14,9 @@ |
class SkBitmap; |
class SkData; |
class SkImageGenerator; |
+class SkMatrix; |
+class SkPaint; |
+class SkPicture; |
/** |
* Takes ownership of SkImageGenerator. If this method fails for |
@@ -126,6 +129,14 @@ public: |
*/ |
static SkImageGenerator* NewFromEncoded(SkData*); |
+ /** Return a new image generator backed by the specified picture. If the size is empty or |
+ * the picture is NULL, this returns NULL. |
+ * The optional matrix and paint arguments are passed to drawPicture() at rasterization |
+ * time. |
+ */ |
+ static SkImageGenerator* NewFromPicture(const SkISize&, const SkPicture*, const SkMatrix*, |
+ const SkPaint*); |
+ |
protected: |
SkImageGenerator(const SkImageInfo& info) : fInfo(info) {} |