Index: src/gpu/SkGr.cpp |
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp |
index 34e5d0fde37a6533277afe2630426a25c74c6ffc..8e7cea64d4a5b306184eee943c1afb9c33431832 100644 |
--- a/src/gpu/SkGr.cpp |
+++ b/src/gpu/SkGr.cpp |
@@ -343,6 +343,7 @@ void GrUnlockAndUnrefCachedBitmapTexture(GrTexture* texture) { |
/////////////////////////////////////////////////////////////////////////////// |
+#ifdef SK_SUPPORT_LEGACY_BITMAP_CONFIG |
GrPixelConfig SkBitmapConfig2GrPixelConfig(SkBitmap::Config config) { |
switch (config) { |
case SkBitmap::kA8_Config: |
@@ -360,6 +361,7 @@ GrPixelConfig SkBitmapConfig2GrPixelConfig(SkBitmap::Config config) { |
return kUnknown_GrPixelConfig; |
} |
} |
+#endif |
// alphatype is ignore for now, but if GrPixelConfig is expanded to encompass |
// alpha info, that will be considered. |