зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f454149210
Коммит
87e692949a
|
@ -126,6 +126,9 @@ void ShareableCanvasRenderer::UpdateCompositableClient() {
|
||||||
if (!YIsDown()) {
|
if (!YIsDown()) {
|
||||||
flags |= TextureFlags::ORIGIN_BOTTOM_LEFT;
|
flags |= TextureFlags::ORIGIN_BOTTOM_LEFT;
|
||||||
}
|
}
|
||||||
|
if (IsOpaque()) {
|
||||||
|
flags |= TextureFlags::IS_OPAQUE;
|
||||||
|
}
|
||||||
|
|
||||||
// -
|
// -
|
||||||
|
|
||||||
|
|
|
@ -229,11 +229,13 @@ void MacIOSurfaceTextureHostOGL::PushDisplayItems(
|
||||||
case gfx::SurfaceFormat::B8G8R8X8: {
|
case gfx::SurfaceFormat::B8G8R8X8: {
|
||||||
MOZ_ASSERT(aImageKeys.length() == 1);
|
MOZ_ASSERT(aImageKeys.length() == 1);
|
||||||
MOZ_ASSERT(mSurface->GetPlaneCount() == 0);
|
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],
|
aBuilder.PushImage(aBounds, aClip, true, aFilter, aImageKeys[0],
|
||||||
!(mFlags & TextureFlags::NON_PREMULTIPLIED),
|
!(mFlags & TextureFlags::NON_PREMULTIPLIED),
|
||||||
wr::ColorF{1.0f, 1.0f, 1.0f, 1.0f},
|
wr::ColorF{1.0f, 1.0f, 1.0f, 1.0f},
|
||||||
preferCompositorSurface,
|
preferCompositorSurface,
|
||||||
/* aSupportsExternalCompositing */ true);
|
/* aSupportsExternalCompositing */ false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case gfx::SurfaceFormat::YUV422: {
|
case gfx::SurfaceFormat::YUV422: {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче