Index: src/pdf/SkPDFDevice.cpp |
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp |
index e9a38a0e9b485a5fd023b8b7ebf29a468ccd58d7..c3ee262db34ab3b6f149ba98ee61a855e9cca886 100644 |
--- a/src/pdf/SkPDFDevice.cpp |
+++ b/src/pdf/SkPDFDevice.cpp |
@@ -1950,7 +1950,8 @@ void SkPDFDevice::populateGraphicStateEntryFromPaint( |
fInitialTransform.mapRect(&boundsTemp); |
boundsTemp.roundOut(&bounds); |
- pdfShader.reset(SkPDFShader::GetPDFShader(*shader, transform, bounds)); |
+ pdfShader.reset(SkPDFShader::GetPDFShader(*shader, transform, bounds, |
+ SkIntToScalar(fRasterDpi) / DPI_FOR_RASTER_SCALE_ONE)); |
if (pdfShader.get()) { |
// pdfShader has been canonicalized so we can directly compare |