mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1061241 - Unref our LocalMatrixShader when building our mask SkPaint r=mattwoodrow
This commit is contained in:
parent
cce7a42aa9
commit
3392884753
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user