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

Unified Diff: include/core/SkImage.h

Issue 2241353002: pin as texture api (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 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 | « no previous file | src/core/SkCanvas.cpp » ('j') | src/image/SkImage_Gpu.h » ('J')
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 fd20e5e0e521f712848be9bdd5d6d2c481d2cd99..5ea93b253d235986644cae4c761c8ee1cb761097 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -341,6 +341,10 @@ public:
* the pixels fails). Otherwise, it returns the original image.
*/
sk_sp<SkImage> makeNonTextureImage() const;
+
+ void pinAsTexture(GrContext*) const;
+ void unpinAsTexture(GrContext*) const;
+
/**
* Apply a given image filter to this image, and return the filtered result.
*
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | src/image/SkImage_Gpu.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698