Chromium Code Reviews| Index: src/pdf/SkPDFShader.cpp |
| diff --git a/src/pdf/SkPDFShader.cpp b/src/pdf/SkPDFShader.cpp |
| index 80ea2f2ce717feeac26c0e41a0714aafdf671370..b7b76a766956722e9081e498523cfff909cc3935 100644 |
| --- a/src/pdf/SkPDFShader.cpp |
| +++ b/src/pdf/SkPDFShader.cpp |
| @@ -9,7 +9,7 @@ |
| #include "SkPDFShader.h" |
| -#include "SkCanvas.h" |
| +#include "SkCanvasSimplifier.h" |
| #include "SkData.h" |
| #include "SkPDFCatalog.h" |
| #include "SkPDFDevice.h" |
| @@ -870,8 +870,9 @@ SkPDFImageShader::SkPDFImageShader(SkPDFShader::State* state) : fState(state) { |
| unflip.preScale(SK_Scalar1, -SK_Scalar1); |
| SkISize size = SkISize::Make(SkScalarRound(deviceBounds.width()), |
| SkScalarRound(deviceBounds.height())); |
| + // TODO(edisonn): should we pass here the DCT encoder of the destination device? |
|
vandebo (ex-Chrome)
2013/09/27 15:50:17
I would say so.
|
| SkPDFDevice pattern(size, size, unflip); |
| - SkCanvas canvas(&pattern); |
| + SkCanvasSimplifier canvas(&pattern); |
|
vandebo (ex-Chrome)
2013/09/27 15:50:17
This doesn't help you here. I think this method w
edisonn
2013/10/04 19:40:37
Done.
vandebo (ex-Chrome)
2013/10/07 22:34:10
Done? how so?
edisonn
2013/10/08 17:55:30
Sorry, is being done in another CL, as it is not r
|
| SkRect patternBBox; |
| image->getBounds(&patternBBox); |