Index: include/core/SkBitmap.h |
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h |
index 5406f9432887eaa1bda88ad5792511abfd97a09a..5ff67e4fbbb123f352b848f8e91699e91f895a22 100644 |
--- a/include/core/SkBitmap.h |
+++ b/include/core/SkBitmap.h |
@@ -23,7 +23,10 @@ class SkPixelRef; |
class SkPixelRefFactory; |
class SkRegion; |
class SkString; |
+ |
+#ifdef SK_SUPPORT_LEGACY_BITMAP_GETTEXTURE |
class GrTexture; |
+#endif |
/** \class SkBitmap |
@@ -468,9 +471,9 @@ public: |
(this->colorType() != kIndex_8_SkColorType || fColorTable); |
} |
- /** Returns the pixelRef's texture, or NULL |
- */ |
- GrTexture* getTexture() const; |
+#ifdef SK_SUPPORT_LEGACY_BITMAP_GETTEXTURE |
+ GrTexture* getTexture() const { return nullptr; } |
+#endif |
/** Return the bitmap's colortable, if it uses one (i.e. colorType is |
Index_8) and the pixels are locked. |