Bug 1890852 - Fix UseOptimizeShadow check in CanvasRenderingContext2D::DrawImage() r=gfx-reviewers,lsalzman

Check for detecting OptimizeShadow added by bug 1887818 was wrong .

Differential Revision: https://phabricator.services.mozilla.com/D207396
This commit is contained in:
sotaro 2024-04-16 00:30:01 +00:00
Родитель 2aecfe5cb5
Коммит 5302f0e6ba
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -5527,7 +5527,7 @@ void CanvasRenderingContext2D::DrawImage(const CanvasImageSource& aImage,
HTMLVideoElement* video = HTMLVideoElement::FromNodeOrNull(element);
if (video && mBufferProvider->IsAccelerated() &&
mTarget->IsRecording() &&
!(NeedToApplyFilter() && NeedToDrawShadow())) {
!(!NeedToApplyFilter() && NeedToDrawShadow())) {
res = nsLayoutUtils::SurfaceFromElement(
video, sfeFlags, mTarget, /* aOptimizeSourceSurface */ false);
surfaceDescriptor = MaybeGetSurfaceDescriptorForRemoteCanvas(res);