aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/device/xps/SkXPSDevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/device/xps/SkXPSDevice.cpp')
-rw-r--r--src/device/xps/SkXPSDevice.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/device/xps/SkXPSDevice.cpp b/src/device/xps/SkXPSDevice.cpp
index e7b5d41fb0..595694cf27 100644
--- a/src/device/xps/SkXPSDevice.cpp
+++ b/src/device/xps/SkXPSDevice.cpp
@@ -2410,10 +2410,12 @@ void SkXPSDevice::drawDevice(const SkDraw& d, SkBaseDevice* dev,
"Could not add layer to current visuals.");
}
+#ifdef SK_SUPPORT_LEGACY_READPIXELSCONFIG
bool SkXPSDevice::onReadPixels(const SkBitmap& bitmap, int x, int y,
SkCanvas::Config8888) {
return false;
}
+#endif
SkBaseDevice* SkXPSDevice::onCreateDevice(const SkImageInfo&, Usage) {
//Conditional for bug compatibility with PDF device.