зеркало из https://github.com/mozilla/gecko-dev.git
954c16acec
WebGPU uses CompositableInProcessManager to push TextureHost directly from WebGPUParent to WebRender. But CompositableInProcessManager plumbing has a problem and caused Bug 1805209. gecko already has a similar mechanism, called RemoteTextureMap. It is used in oop WebGL. If WebGPU uses RemoteTextureMap instead of CompositableInProcessManager, both WebGPU and oop WebGL use same mechanism. WebGPUParent pushes a new texture to RemoteTextureMap. The RemoteTextureMap notifies the pushed texture to WebRenderImageHost. Before the change, only one TextureHost is used for one swap chain. With the change, multiple TextureHosts are used for one swap chain with recycling. The changes are followings. - Use RemoteTextureMap instead of CompositableInProcessManager. - Use RemoteTextureOwnerId instead of CompositableHandle. - Use WebRenderCanvasData instead of WebRenderInProcessImageData. - Add remote texture pushed callback functionality to RemoteTextureMap. With it, RemoteTextureMap notifies a new pushed remote texture to WebRenderImageHost. - Remove CompositableInProcessManager. Differential Revision: https://phabricator.services.mozilla.com/D164890 |
||
---|---|---|
.. | ||
CompositableHost.cpp | ||
CompositableHost.h | ||
Diagnostics.h | ||
FontData.h | ||
FrameUniformityData.cpp | ||
FrameUniformityData.h | ||
GPUVideoTextureHost.cpp | ||
GPUVideoTextureHost.h | ||
ImageComposite.cpp | ||
ImageComposite.h | ||
RemoteTextureHostWrapper.cpp | ||
RemoteTextureHostWrapper.h | ||
TextureHost.cpp | ||
TextureHost.h |