diff options
author | reed <reed@google.com> | 2015-04-29 08:34:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-29 08:34:00 -0700 |
commit | 61f501f8c675da8d5915e5e7fd32dfdb113f1cfb (patch) | |
tree | b9b6a3d1d9d9cc8e78cd9309c8ab7255c83234c2 /src/pdf | |
parent | aec251012542e971100e218bf463adbfb5d21d20 (diff) |
onCreateDevice -> NULL now means the caller should create its own (bitmap) device
BUG=skia:
Review URL: https://codereview.chromium.org/1116453002
Diffstat (limited to 'src/pdf')
-rw-r--r-- | src/pdf/SkPDFDevice.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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); |