Index: include/gpu/SkGr.h |
diff --git a/include/gpu/SkGr.h b/include/gpu/SkGr.h |
index 835d353a2c0164351fdace61dea61325ec7f5d97..1adac654a68f8da56306a979b33ed457bb7129f8 100644 |
--- a/include/gpu/SkGr.h |
+++ b/include/gpu/SkGr.h |
@@ -45,11 +45,13 @@ GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff); |
#include "SkColorPriv.h" |
+#ifdef SK_SUPPORT_LEGACY_BITMAP_CONFIG |
/** |
* Convert the SkBitmap::Config to the corresponding PixelConfig, or |
* kUnknown_PixelConfig if the conversion cannot be done. |
*/ |
GrPixelConfig SkBitmapConfig2GrPixelConfig(SkBitmap::Config); |
+#endif |
GrPixelConfig SkImageInfo2GrPixelConfig(SkColorType, SkAlphaType); |
static inline GrPixelConfig SkImageInfo2GrPixelConfig(const SkImageInfo& info) { |