Index: src/pdf/SkPDFDevice.cpp |
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp |
index 5167474f106295cc15808104801308d7d256e1eb..1b16397512a834ff89d65f97fe0644e9888c6ef8 100644 |
--- a/src/pdf/SkPDFDevice.cpp |
+++ b/src/pdf/SkPDFDevice.cpp |
@@ -577,7 +577,8 @@ static bool not_supported_for_layers(const SkPaint& layerPaint) { |
} |
SkBaseDevice* SkPDFDevice::onCreateDevice(const CreateInfo& cinfo, const SkPaint* layerPaint) { |
- if (layerPaint && not_supported_for_layers(*layerPaint)) { |
+ if (cinfo.fForImageFilter || |
+ (layerPaint && not_supported_for_layers(*layerPaint))) { |
return SkBitmapDevice::Create(cinfo.fInfo); |
} |
SkISize size = SkISize::Make(cinfo.fInfo.width(), cinfo.fInfo.height()); |