Bug 1061241 - Unref our LocalMatrixShader when building our mask SkPaint r=mattwoodrow

This commit is contained in:
George Wright 2014-09-02 15:18:15 -04:00
parent cce7a42aa9
commit 3392884753

View File

@ -585,7 +585,7 @@ DrawTargetSkia::MaskSurface(const Pattern &aSource,
SkMatrix transform = maskPaint.getShader()->getLocalMatrix();
transform.postTranslate(SkFloatToScalar(aOffset.x), SkFloatToScalar(aOffset.y));
SkShader* matrixShader = SkShader::CreateLocalMatrixShader(maskPaint.getShader(), transform);
maskPaint.setShader(matrixShader);
SkSafeUnref(maskPaint.setShader(matrixShader));
SkLayerRasterizer::Builder builder;
builder.addLayer(maskPaint);