Index: skia/ext/vector_platform_device_skia.cc |
diff --git a/skia/ext/vector_platform_device_skia.cc b/skia/ext/vector_platform_device_skia.cc |
index dbc5843679b167c98ac580d374d937617f68898d..bda7a60001ca7ab263eb924485a6cbac7f9aa3f1 100644 |
--- a/skia/ext/vector_platform_device_skia.cc |
+++ b/skia/ext/vector_platform_device_skia.cc |
@@ -186,6 +186,8 @@ void VectorPlatformDeviceSkia::drawDevice(const SkDraw& draw, |
// to unwrap the embedded SkPDFDevice. |
VectorPlatformDeviceSkia* vector_device = |
static_cast<VectorPlatformDeviceSkia*>(device); |
+ vector_device->pdf_device_->setOrigin(vector_device->getOrigin().fX, |
+ vector_device->getOrigin().fY); |
real_device = vector_device->pdf_device_.get(); |
} |
pdf_device_->drawDevice(draw, real_device, x, y, paint); |