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.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/device/xps/SkXPSDevice.cpp b/src/device/xps/SkXPSDevice.cpp
index a32eb26adc..e2e23fa1ab 100644
--- a/src/device/xps/SkXPSDevice.cpp
+++ b/src/device/xps/SkXPSDevice.cpp
@@ -2384,6 +2384,7 @@ SkDevice* SkXPSDevice::onCreateCompatibleDevice(SkBitmap::Config config,
bool isOpaque,
Usage usage) {
if (SkDevice::kGeneral_Usage == usage) {
+ return NULL;
SK_CRASH();
//To what stream do we write?
//SkXPSDevice* dev = new SkXPSDevice(this);
@@ -2409,3 +2410,8 @@ SkXPSDevice::SkXPSDevice(IXpsOMObjectFactory* xpsFactory)
HRVM(this->fXpsFactory->CreateCanvas(&this->fCurrentXpsCanvas),
"Could not create canvas for layer.");
}
+
+bool SkXPSDevice::allowImageFilter(SkImageFilter*) {
+ return false;
+}
+