From 61f501f8c675da8d5915e5e7fd32dfdb113f1cfb Mon Sep 17 00:00:00 2001 From: reed Date: Wed, 29 Apr 2015 08:34:00 -0700 Subject: onCreateDevice -> NULL now means the caller should create its own (bitmap) device BUG=skia: Review URL: https://codereview.chromium.org/1116453002 --- src/pdf/SkPDFDevice.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/pdf') diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp index 88f9b810b6..2dbad5f411 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); -- cgit v1.2.3