Index: src/utils/SkDeferredCanvas.cpp |
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp |
index 9f444e11f3c17bb58e0b5ca298240e4fe4ff341e..a5174720a9c20a67695547890c7ff792ce932333 100644 |
--- a/src/utils/SkDeferredCanvas.cpp |
+++ b/src/utils/SkDeferredCanvas.cpp |
@@ -159,7 +159,9 @@ public: |
virtual int width() const SK_OVERRIDE; |
virtual int height() const SK_OVERRIDE; |
+#ifdef SK_SUPPORT_LEGACY_DEVICE_CONFIG |
virtual SkBitmap::Config config() const SK_OVERRIDE; |
+#endif |
virtual bool isOpaque() const SK_OVERRIDE; |
virtual SkImageInfo imageInfo() const SK_OVERRIDE; |
@@ -435,9 +437,11 @@ int SkDeferredDevice::height() const { |
return immediateDevice()->height(); |
} |
+#ifdef SK_SUPPORT_LEGACY_DEVICE_CONFIG |
SkBitmap::Config SkDeferredDevice::config() const { |
return immediateDevice()->config(); |
} |
+#endif |
bool SkDeferredDevice::isOpaque() const { |
return immediateDevice()->isOpaque(); |