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

Unified Diff: src/image/SkImage.cpp

Issue 2241353002: pin as texture api (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: use refPinnedTexture in GpuDevice 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
Index: src/image/SkImage.cpp
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp
index 9febeaa96e12daf5d4d962a755688dd35562e97b..42c6ac5f940ba3a46cc49f45a91a2672a18fda82 100644
--- a/src/image/SkImage.cpp
+++ b/src/image/SkImage.cpp
@@ -387,6 +387,16 @@ bool SkImage::isLazyGenerated() const {
return as_IB(this)->onIsLazyGenerated();
}
+void SkImage::pinAsTexture(GrContext* ctx) const {
+ SkASSERT(ctx);
+ as_IB(this)->onPinAsTexture(ctx);
+}
+
+void SkImage::unpinAsTexture(GrContext* ctx) const {
+ SkASSERT(ctx);
+ as_IB(this)->onUnpinAsTexture(ctx);
+}
+
//////////////////////////////////////////////////////////////////////////////////////
#if !SK_SUPPORT_GPU

Powered by Google App Engine
This is Rietveld 408576698