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

Unified Diff: include/core/SkImageGenerator.h

Issue 1240093004: SkPictureImageGenerator (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: build fix Created 5 years, 4 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
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkPictureImageGenerator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {}
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkPictureImageGenerator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698