-
- Downloads
Bug 1900677 - Recycle DataSourceSurface allocated in...
Bug 1900677 - Recycle DataSourceSurface allocated in CanvasTranslator::LookupSourceSurfaceFromSurfaceDescriptor() if possible r=gfx-reviewers,lsalzman Add a capability to reuse used DataSourceSurface that was previously used for storing converted video data. The format of converted video's DataSourceSurface is always SurfaceFormat::B8G8R8X8 in this case. Therefore, there is no need to care about transparency during recycling. When recycled, one last reference is owned by mUsedDataSurfaceForSurfaceDescriptor. Add argument gfx::DataSourceSurface* aSurface to TextureHost::GetAsSurface(). aSurface may be used as returned DataSourceSurfacefi the TextureHost supports it. ImageDataSerializer::DataSourceSurfaceFromYCbCrDescriptor() already supports to provide a pre-allocated DataSourceSurface as an argument. CreateSourceSurfaceFromMacIOSurface() is extended to support a pre-allocated DataSourceSurface as an argument. Differential Revision: https://phabricator.services.mozilla.com/D212608
Showing
- gfx/layers/DcompSurfaceImage.h 2 additions, 1 deletiongfx/layers/DcompSurfaceImage.h
- gfx/layers/MacIOSurfaceHelpers.cpp 16 additions, 5 deletionsgfx/layers/MacIOSurfaceHelpers.cpp
- gfx/layers/MacIOSurfaceHelpers.h 1 addition, 1 deletiongfx/layers/MacIOSurfaceHelpers.h
- gfx/layers/composite/GPUVideoTextureHost.h 2 additions, 1 deletiongfx/layers/composite/GPUVideoTextureHost.h
- gfx/layers/composite/RemoteTextureHostWrapper.h 2 additions, 1 deletiongfx/layers/composite/RemoteTextureHostWrapper.h
- gfx/layers/composite/TextureHost.cpp 3 additions, 2 deletionsgfx/layers/composite/TextureHost.cpp
- gfx/layers/composite/TextureHost.h 9 additions, 4 deletionsgfx/layers/composite/TextureHost.h
- gfx/layers/d3d11/TextureD3D11.cpp 2 additions, 1 deletiongfx/layers/d3d11/TextureD3D11.cpp
- gfx/layers/d3d11/TextureD3D11.h 4 additions, 2 deletionsgfx/layers/d3d11/TextureD3D11.h
- gfx/layers/d3d11/TextureHostWrapperD3D11.h 2 additions, 1 deletiongfx/layers/d3d11/TextureHostWrapperD3D11.h
- gfx/layers/ipc/CanvasTranslator.cpp 38 additions, 2 deletionsgfx/layers/ipc/CanvasTranslator.cpp
- gfx/layers/ipc/CanvasTranslator.h 5 additions, 0 deletionsgfx/layers/ipc/CanvasTranslator.h
- gfx/layers/opengl/DMABUFTextureHostOGL.h 2 additions, 1 deletiongfx/layers/opengl/DMABUFTextureHostOGL.h
- gfx/layers/opengl/MacIOSurfaceTextureHostOGL.h 3 additions, 2 deletionsgfx/layers/opengl/MacIOSurfaceTextureHostOGL.h
- gfx/layers/opengl/TextureHostOGL.h 8 additions, 4 deletionsgfx/layers/opengl/TextureHostOGL.h
- gfx/layers/wr/WebRenderTextureHost.cpp 3 additions, 2 deletionsgfx/layers/wr/WebRenderTextureHost.cpp
- gfx/layers/wr/WebRenderTextureHost.h 2 additions, 1 deletiongfx/layers/wr/WebRenderTextureHost.h
Loading
Please register or sign in to comment