| Index: src/pdf/SkPDFDevice.cpp
|
| diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
|
| index 4395daca16711a52b2c56a39f2c6a3d88e571864..b14ca729028a60d035b37bf65923f751793af79d 100644
|
| --- a/src/pdf/SkPDFDevice.cpp
|
| +++ b/src/pdf/SkPDFDevice.cpp
|
| @@ -567,19 +567,19 @@
|
| }
|
| }
|
|
|
| -SkBaseDevice* SkPDFDevice::onCreateCompatibleDevice(const CreateInfo& cinfo) {
|
| +SkBaseDevice* SkPDFDevice::onCreateDevice(const SkImageInfo& info, Usage usage) {
|
| // PDF does not support image filters, so render them on CPU.
|
| // Note that this rendering is done at "screen" resolution (100dpi), not
|
| // printer resolution.
|
| // FIXME: It may be possible to express some filters natively using PDF
|
| // to improve quality and file size (http://skbug.com/3043)
|
| - if (kImageFilter_Usage == cinfo.fUsage) {
|
| - return SkBitmapDevice::Create(cinfo.fInfo);
|
| + if (kImageFilter_Usage == usage) {
|
| + return SkBitmapDevice::Create(info);
|
| }
|
|
|
| SkMatrix initialTransform;
|
| initialTransform.reset();
|
| - SkISize size = SkISize::Make(cinfo.fInfo.width(), cinfo.fInfo.height());
|
| + SkISize size = SkISize::Make(info.width(), info.height());
|
| return SkNEW_ARGS(SkPDFDevice, (size, size, initialTransform));
|
| }
|
|
|
|
|