Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Unified Diff: include/core/SkImageGenerator.h

Issue 1240093004: SkPictureImageGenerator (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: added GM Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {}

Powered by Google App Engine
This is Rietveld 408576698