Index: src/pdf/SkPDFDevice.cpp |
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp |
index 40a4576cb6997a8e2f4a703186776bbb1c25352b..a6efdec5152684b4444790b3bf1c35d07a3d6e1d 100644 |
--- a/src/pdf/SkPDFDevice.cpp |
+++ b/src/pdf/SkPDFDevice.cpp |
@@ -8,7 +8,6 @@ |
#include "SkPDFDevice.h" |
#include "SkAnnotation.h" |
-#include "SkBitmapDevice.h" |
#include "SkColor.h" |
#include "SkClipStack.h" |
#include "SkData.h" |
@@ -579,7 +578,7 @@ static bool not_supported_for_layers(const SkPaint& layerPaint) { |
SkBaseDevice* SkPDFDevice::onCreateDevice(const CreateInfo& cinfo, const SkPaint* layerPaint) { |
if (cinfo.fForImageFilter || |
(layerPaint && not_supported_for_layers(*layerPaint))) { |
- return SkBitmapDevice::Create(cinfo.fInfo); |
+ return NULL; |
} |
SkISize size = SkISize::Make(cinfo.fInfo.width(), cinfo.fInfo.height()); |
return SkPDFDevice::Create(size, fRasterDpi, fCanon); |