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

Unified Diff: include/core/SkImage.h

Issue 1364263002: Remove SkImage::newImage() (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | src/image/SkImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkImage.h
diff --git a/include/core/SkImage.h b/include/core/SkImage.h
index 99562f4445a95148378e77154fea4845e82c2481..d6aedbae7551ea301c415286a0b9db3f5ed8feff 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -272,28 +272,6 @@ public:
const char* toString(SkString*) const;
-#ifdef SK_SUPPORT_LEGACY_NEWIMAGE
- /**
- * Return an image that is a rescale of this image (using newWidth, newHeight).
- *
- * If subset is NULL, then the entire original image is used as the src for the scaling.
- * If subset is not NULL, then it specifies subset of src-pixels used for scaling. If
- * subset extends beyond the bounds of the original image, then NULL is returned.
- *
- * Notes:
- * - newWidth and newHeight must be > 0 or NULL will be returned.
- *
- * - it is legal for the returned image to be the same instance as the src image
- * (if the new dimensions == the src dimensions and subset is NULL or == src dimensions).
- *
- * - it is legal for the "scaled" image to have changed its SkAlphaType from unpremul
- * to premul (as required by the impl). The image should draw (nearly) identically,
- * since during drawing we will "apply the alpha" to the pixels. Future optimizations
- * may take away this caveat, preserving unpremul.
- */
- SkImage* newImage(int newWidth, int newHeight, const SkIRect* subset) const;
-#endif
-
/**
* Return a new image that is a subset of this image. The underlying implementation may
* share the pixels, or it may make a copy.
« no previous file with comments | « no previous file | src/image/SkImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698