| Index: include/core/SkImageGenerator.h
|
| diff --git a/include/core/SkImageGenerator.h b/include/core/SkImageGenerator.h
|
| index c133476d5b40f8fd3a88a65f5a9ace6dbcb461b5..8368e0511364f334ecb30d38223c594c766faf50 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;
|
|
|
| //#define SK_LEGACY_IMAGE_GENERATOR_ENUMS_AND_OPTIONS
|
|
|
| @@ -201,6 +204,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) {}
|
|
|
|
|