Index: src/core/SkDevice.cpp |
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp |
index 5a613fff2e1bb15271d18b09c8a249cd056e8b92..75d481e98f4330d5bb60c82ec67682e0ce73cac7 100644 |
--- a/src/core/SkDevice.cpp |
+++ b/src/core/SkDevice.cpp |
@@ -48,6 +48,7 @@ SkImageInfo SkBaseDevice::imageInfo() const { |
return SkImageInfo::MakeUnknown(); |
} |
+#ifdef SK_SUPPORT_LEGACY_ACCESSBITMAP |
const SkBitmap& SkBaseDevice::accessBitmap(bool changePixels) { |
const SkBitmap& bitmap = this->onAccessBitmap(); |
if (changePixels) { |
@@ -55,6 +56,7 @@ const SkBitmap& SkBaseDevice::accessBitmap(bool changePixels) { |
} |
return bitmap; |
} |
+#endif |
SkPixelGeometry SkBaseDevice::CreateInfo::AdjustGeometry(const SkImageInfo& info, |
TileUsage tileUsage, |