| Index: src/pdf/SkPDFDevice.cpp
|
| diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
|
| index ced075ebf932fb2713e88ff9254a19f3db0c997b..3a0d63c5825035d78daca3663b498191c1576990 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());
|
|
|