зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2aecfe5cb5
Коммит
5302f0e6ba
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче