Bug 1712855 - Fix assertion when recording SVG image blobs with non-integer translation transforms. r=jrmuizel

When we rasterized SVG images on the main thread of the content process,
we would call gfxUtils::DrawPixelSnapped with aUseOptimalFillOp set to
false. We should do the same when recording them.

Differential Revision: https://phabricator.services.mozilla.com/D116398
This commit is contained in:
Andrew Osmond 2021-06-22 16:10:42 +00:00
Родитель 751f4ef52c
Коммит 0edec1bed5
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -213,7 +213,7 @@ Maybe<BlobImageKeyData> SourceSurfaceBlobImage::RecordDrawing(
gfxUtils::DrawPixelSnapped(ctx, svgDrawable, SizeDouble(mSize), region,
SurfaceFormat::OS_RGBA, SamplingFilter::POINT,
mImageFlags);
mImageFlags, /* aUseOptimalFillOp */ false);
}
recorder->FlushItem(imageRectOrigin);