| Index: src/pdf/SkPDFDevice.cpp
|
| diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
|
| index e90edb1408fa790592e2f0766305eb923e72d3b6..1aed85632a7b978688d388f2641c8cd1431daf14 100644
|
| --- a/src/pdf/SkPDFDevice.cpp
|
| +++ b/src/pdf/SkPDFDevice.cpp
|
| @@ -704,7 +704,8 @@ SkPDFDevice::SkPDFDevice(const SkISize& pageSize, const SkISize& contentSize,
|
| fLastContentEntry(NULL),
|
| fLastMarginContentEntry(NULL),
|
| fClipStack(NULL),
|
| - fEncoder(NULL) {
|
| + fEncoder(NULL),
|
| + fRasterDpi(SkFloatToScalar(72.0f)) {
|
| // just report that PDF does not supports perspective
|
| // TODO(edisonn): update the shape when possible
|
| // or dump in an image otherwise
|
| @@ -734,7 +735,9 @@ SkPDFDevice::SkPDFDevice(const SkISize& layerSize,
|
| fExistingClipRegion(existingClipRegion),
|
| fLastContentEntry(NULL),
|
| fLastMarginContentEntry(NULL),
|
| - fClipStack(NULL) {
|
| + fClipStack(NULL),
|
| + fEncoder(NULL),
|
| + fRasterDpi(SkFloatToScalar(72.0f)) {
|
| fInitialTransform.reset();
|
| this->init();
|
| }
|
|
|