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

Unified Diff: src/image/SkImage_Base.h

Issue 821083002: add newImage API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: check when subset == bounds Created 5 years, 11 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 | « src/image/SkImage.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/image/SkImage_Base.h
diff --git a/src/image/SkImage_Base.h b/src/image/SkImage_Base.h
index 8c1dfada638db398c6b645c7e0c264c54a3b470c..512c80c44beca03134cbeee92585b8c46a46e85c 100644
--- a/src/image/SkImage_Base.h
+++ b/src/image/SkImage_Base.h
@@ -59,6 +59,10 @@ public:
SkShader::TileMode,
const SkMatrix* localMatrix) const { return NULL; };
+ // newWidth > 0, newHeight > 0, subset either NULL or a proper subset of this bounds
+ virtual SkImage* onNewImage(int newWidth, int newHeight, const SkIRect* subset,
+ SkFilterQuality) const;
+
private:
const SkSurfaceProps fProps;
« no previous file with comments | « src/image/SkImage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698