Index: src/image/SkImage_Base.h |
diff --git a/src/image/SkImage_Base.h b/src/image/SkImage_Base.h |
index 09971c1198de0333122fa3a9289ce7ba76009549..a1da0fa559f2f9f4bfdceb3486a086984017352b 100644 |
--- a/src/image/SkImage_Base.h |
+++ b/src/image/SkImage_Base.h |
@@ -8,11 +8,14 @@ |
#ifndef SkImage_Base_DEFINED |
#define SkImage_Base_DEFINED |
-#include "GrTexture.h" |
#include "SkAtomics.h" |
#include "SkImage.h" |
#include "SkSurface.h" |
+#if SK_SUPPORT_GPU |
+ #include "GrTexture.h" |
+#endif |
+ |
#include <new> |
class GrTextureParams; |
@@ -41,7 +44,9 @@ public: |
int srcX, int srcY, CachingHint) const; |
virtual GrTexture* peekTexture() const { return nullptr; } |
+#if SK_SUPPORT_GPU |
virtual sk_sp<GrTexture> refPinnedTexture(uint32_t* uniqueID) const { return nullptr; } |
+#endif |
virtual SkImageCacherator* peekCacherator() const { return nullptr; } |
// return a read-only copy of the pixels. We promise to not modify them, |