aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkImage.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkImage.h')
-rw-r--r--include/core/SkImage.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkImage.h b/include/core/SkImage.h
index 32869b7a5d..c4b5efb1e7 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -530,6 +530,7 @@ public:
*/
bool isValid(GrContext* context) const;
+#ifdef SK_SUPPORT_LEGACY_BACKEND_OBJECTS
/** Retrieves the back-end API handle of texture. If flushPendingGrContextIO is true,
complete deferred I/O operations.
@@ -542,6 +543,7 @@ public:
*/
GrBackendObject getTextureHandle(bool flushPendingGrContextIO,
GrSurfaceOrigin* origin = nullptr) const;
+#endif
/** Retrieves the backend texture. If SkImage has no backend texture, an invalid
object is returned. Call GrBackendTexture::isValid to determine if the result