Bug 2068339 - Recycle MacIOSurfaceTextureHostOGL for WebGL/WebGPU on macOS r=gfx-reviewers,lsalzman

Recycle MacIOSurfaceTextureHostOGL to prevent RenderMacIOSurfaceTextureHost recreation.

Differential Revision: https://phabricator.services.mozilla.com/D322819
This commit is contained in:
Sotaro Ikeda
2026-09-11 23:36:07 +00:00
committed by sikeda.birchill@mozilla.com
parent a96211f615
commit a87e28e039
+2
View File
@@ -172,6 +172,7 @@ void RemoteTextureOwnerClient::PushTexture(
TextureFlags::DEFAULT);
if (textureHost) {
if (aDesc.type() == SurfaceDescriptor::TSurfaceDescriptorD3D10 ||
aDesc.type() == SurfaceDescriptor::TSurfaceDescriptorMacIOSurface ||
aDesc.type() == SurfaceDescriptor::TSurfaceDescriptorDMABuf ||
aDesc.type() == layers::SurfaceDescriptor::
TSurfaceDescriptorAndroidHardwareBuffer) {
@@ -211,6 +212,7 @@ void RemoteTextureOwnerClient::PushTexture(
TextureFlags::DEFAULT);
if (textureHost) {
if (aDesc.type() == SurfaceDescriptor::TSurfaceDescriptorD3D10 ||
aDesc.type() == SurfaceDescriptor::TSurfaceDescriptorMacIOSurface ||
aDesc.type() == SurfaceDescriptor::TSurfaceDescriptorDMABuf ||
aDesc.type() == layers::SurfaceDescriptor::
TSurfaceDescriptorAndroidHardwareBuffer) {