Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index e63b2c4aa9ebd81fcf951f61aa7ae478ceafdbc9..ab7a5113022ec1515ce96066bdd97d7a7081aabd 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -217,11 +217,13 @@ bool SkBitmap::setInfo(const SkImageInfo& origInfo, size_t rowBytes) { |
return true; |
} |
+#ifdef SK_SUPPORT_LEGACY_SETCONFIG |
bool SkBitmap::setConfig(Config config, int width, int height, size_t rowBytes, |
SkAlphaType alphaType) { |
SkColorType ct = SkBitmapConfigToColorType(config); |
return this->setInfo(SkImageInfo::Make(width, height, ct, alphaType), rowBytes); |
} |
+#endif |
bool SkBitmap::setAlphaType(SkAlphaType alphaType) { |
if (!validate_alphaType(fInfo.fColorType, alphaType, &alphaType)) { |