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

Unified Diff: include/core/SkImage.h

Issue 2147493004: Add a function to convert a texture backed SkImage to raster. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cleanup Created 4 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
« 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 c9c56684604f8b1f12406c67593ed7e0b4b129fc..c0f37c33022618a974b07a839387f0aa4fad8df7 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -330,6 +330,11 @@ public:
sk_sp<SkImage> makeTextureImage(GrContext*) const;
/**
+ * If the image is texture-backed this will make a raster copy of it (or nullptr if reading back
+ * the pixels fails). Otherwise, it returns the original image.
+ */
+ sk_sp<SkImage> makeNonTextureImage() const;
+ /**
* Apply a given image filter to this image, and return the filtered result.
*
* The subset represents the active portion of this image. The return value is similarly an
« 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