Chromium Code Reviews| Index: src/pdf/SkPDFDeviceFlattener.cpp |
| diff --git a/src/pdf/SkPDFDeviceFlattener.cpp b/src/pdf/SkPDFDeviceFlattener.cpp |
| index 91c9803c320a583c31c262b97a86bbe85cab7f15..02f2aa725219380bb4f6ce46f083182757687e8d 100644 |
| --- a/src/pdf/SkPDFDeviceFlattener.cpp |
| +++ b/src/pdf/SkPDFDeviceFlattener.cpp |
| @@ -27,7 +27,7 @@ static void flattenPaint(const SkDraw& d, SkPaint* paint) { |
| if (paint->getShader()) { |
| SkMatrix local = paint->getShader()->getLocalMatrix(); |
| local.preConcat(*d.fMatrix); |
| - paint->getShader()->setLocalMatrix(local); |
| + paint->setShader(SkShader::CreateLocalMatrixWrapper(paint->getShader(), local)); |
|
scroggo
2014/04/24 17:02:53
Don't we need to unref this new shader?
|
| } |
| } |