Bug 1664804 - Allow external surfaces for WebGL again. r=jgilbert

This check was previously added in bug 1628175, and then accidentally removed in bug 1632249.

Differential Revision: https://phabricator.services.mozilla.com/D91671
This commit is contained in:
Matt Woodrow 2020-10-07 20:39:21 +00:00
Родитель 045e73c50c
Коммит 0563d3a60a
2 изменённых файлов: 6 добавлений и 1 удалений

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

@ -126,6 +126,9 @@ void ShareableCanvasRenderer::UpdateCompositableClient() {
if (!YIsDown()) {
flags |= TextureFlags::ORIGIN_BOTTOM_LEFT;
}
if (IsOpaque()) {
flags |= TextureFlags::IS_OPAQUE;
}
// -

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

@ -233,11 +233,13 @@ void MacIOSurfaceTextureHostOGL::PushDisplayItems(
case gfx::SurfaceFormat::B8G8R8X8: {
MOZ_ASSERT(aImageKeys.length() == 1);
MOZ_ASSERT(mSurface->GetPlaneCount() == 0);
// We disable external compositing for RGB surfaces for now until
// we've tested support more thoroughly. Bug 1667917.
aBuilder.PushImage(aBounds, aClip, true, aFilter, aImageKeys[0],
!(mFlags & TextureFlags::NON_PREMULTIPLIED),
wr::ColorF{1.0f, 1.0f, 1.0f, 1.0f},
aPreferCompositorSurface,
/* aSupportsExternalCompositing */ true);
/* aSupportsExternalCompositing */ false);
break;
}
case gfx::SurfaceFormat::YUV422: {