Index: src/pdf/SkPDFDevice.cpp |
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp |
index d227dd7d1cb9f5c7eb9e141826b6d180205c8ff2..9487dfd0a536589d074a74f24f9160f978660d82 100644 |
--- a/src/pdf/SkPDFDevice.cpp |
+++ b/src/pdf/SkPDFDevice.cpp |
@@ -585,13 +585,10 @@ void GraphicStackState::updateDrawingState(const GraphicStateEntry& state) { |
} |
} |
-SkBaseDevice* SkPDFDevice::onCreateCompatibleDevice(SkBitmap::Config config, |
- int width, int height, |
- bool isOpaque, |
- Usage usage) { |
+SkBaseDevice* SkPDFDevice::onCreateDevice(const SkImageInfo& info, Usage usage) { |
SkMatrix initialTransform; |
initialTransform.reset(); |
- SkISize size = SkISize::Make(width, height); |
+ SkISize size = SkISize::Make(info.width(), info.height()); |
return SkNEW_ARGS(SkPDFDevice, (size, size, initialTransform)); |
} |