Bug 1779771 - Use thread local ScreenReferenceDrawTarget for CanvasPath::Constructor. r=gfx-reviewers,lsalzman

Differential Revision: https://phabricator.services.mozilla.com/D151944
This commit is contained in:
Andrew Osmond 2022-07-15 19:22:21 +00:00
parent b09009da4c
commit 65ee6ac311

View File

@ -832,7 +832,7 @@ already_AddRefed<gfx::Path> SVGContentUtils::GetPath(
}
RefPtr<DrawTarget> drawTarget =
gfxPlatform::GetPlatform()->ScreenReferenceDrawTarget();
gfxPlatform::ThreadLocalScreenReferenceDrawTarget();
RefPtr<PathBuilder> builder =
drawTarget->CreatePathBuilder(FillRule::FILL_WINDING);