gecko-dev/gfx/layers
sotaro 0b06ae83bf Bug 1908585 - Disable overlay only for slow present video r=gfx-reviewers,lsalzman
The change disables video overlay only for the slow present video, instead of disabling overlay in system wide.

Disabling the overlay is decided by DCSurfaceVideo. And controlling overlay usage is done by AsyncImagePipelineManager. To deliver the decision, RenderTextureHostUsageInfo is used. RenderTextureHostUsageInfo is shared among, DCSurfaceVideo, RenderTextureHost, AsyncImagePipelineManager and WebRenderImageHost.

Then if RenderTextureHostUsageInfo::DisableVideoOverlay() is called by DCSurfaceVideo, AsyncImagePipelineManager could know if overlay is disabled for TextureHost by RenderTextureHostUsageInfo::DisableVideoOverlay().

WebRenderImageHost retains the RenderTextureHostUsageInfo returned by RenderTextureHost and reuses the returned RenderTextureHostUsageInfo. And if the video overlay is disabled, the disabled overlay is retained for the lifetime of WebRenderImageHost.

There is a case that RenderTextureHost::GetOrMergeUsageInfo() needs to merge 2 RenderTextureHostUsageInfos to one RenderTextureHostUsageInfo. It happens when one TextureHost is used by multiple WebRenderImageHosts.

Differential Revision: https://phabricator.services.mozilla.com/D217355
2024-07-24 00:21:16 +00:00
..
apz Backed out 12 changesets (bug 1831649) for causing multiple failures. 2024-07-18 06:13:43 +03:00
client Bug 1898238 - Use SharedSurface_EGLImage for out-of-process webgl and accelerated canvas on Android. r=sotaro,jgilbert 2024-07-22 20:23:39 +00:00
composite Bug 1908585 - Disable overlay only for slow present video r=gfx-reviewers,lsalzman 2024-07-24 00:21:16 +00:00
d3d11 Bug 1908585 - Disable overlay only for slow present video r=gfx-reviewers,lsalzman 2024-07-24 00:21:16 +00:00
ipc Bug 1902307 - Better validate shm sections. r=gfx-reviewers,lsalzman 2024-07-11 07:10:25 +00:00
layerviewer
opengl Bug 1898238 - Make SharedSurface_EGLImage and (Render)EGLImageTextureHost work. r=sotaro,jgilbert 2024-07-22 20:23:38 +00:00
wr Bug 1908585 - Disable overlay only for slow present video r=gfx-reviewers,lsalzman 2024-07-24 00:21:16 +00:00
AndroidHardwareBuffer.cpp
AndroidHardwareBuffer.h
AnimationHelper.cpp Bug 1626165 - Part 2: Replace the start value and start time of the transition on the compositor. r=layout-reviewers,firefox-animation-reviewers,hiro 2024-06-26 21:33:10 +00:00
AnimationHelper.h Bug 1626165 - Part 2: Replace the start value and start time of the transition on the compositor. r=layout-reviewers,firefox-animation-reviewers,hiro 2024-06-26 21:33:10 +00:00
AnimationInfo.cpp Bug 1626165 - Part 2: Replace the start value and start time of the transition on the compositor. r=layout-reviewers,firefox-animation-reviewers,hiro 2024-06-26 21:33:10 +00:00
AnimationInfo.h
AnimationStorageData.h
AtomicRefCountedWithFinalize.h
AxisPhysicsModel.cpp
AxisPhysicsModel.h Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,necko-reviewers,geckoview-reviewers,application-update-reviewers,media-playback-reviewers,devtools-reviewers,anti-tracking-reviewers,profiler-reviewers,win-reviewers,migration-reviewers,padenot,mconley,nchevobbe,kershaw,gstoll,mstange,bytesized,m_kato 2024-07-17 11:15:31 +00:00
AxisPhysicsMSDModel.cpp
AxisPhysicsMSDModel.h
BSPTree.cpp
BSPTree.h
BufferTexture.cpp
BufferTexture.h
BuildConstants.h
CanvasDrawEventRecorder.cpp
CanvasDrawEventRecorder.h
CanvasRenderer.cpp Bug 1898238 - Use SharedSurface_EGLImage for out-of-process webgl and accelerated canvas on Android. r=sotaro,jgilbert 2024-07-22 20:23:39 +00:00
CanvasRenderer.h Bug 1898238 - Use SharedSurface_EGLImage for out-of-process webgl and accelerated canvas on Android. r=sotaro,jgilbert 2024-07-22 20:23:39 +00:00
CompositionRecorder.cpp
CompositionRecorder.h
Compositor.cpp
Compositor.h
CompositorAnimationStorage.cpp Bug 1626165 - Part 2: Replace the start value and start time of the transition on the compositor. r=layout-reviewers,firefox-animation-reviewers,hiro 2024-06-26 21:33:10 +00:00
CompositorAnimationStorage.h Bug 1626165 - Part 2: Replace the start value and start time of the transition on the compositor. r=layout-reviewers,firefox-animation-reviewers,hiro 2024-06-26 21:33:10 +00:00
CompositorTypes.cpp
CompositorTypes.h
D3D11ShareHandleImage.cpp
D3D11ShareHandleImage.h
D3D11TextureIMFSampleImage.cpp
D3D11TextureIMFSampleImage.h
D3D11YCbCrImage.cpp Bug 1901928 - Remvoe D3D11YCbCrImage class r=gfx-reviewers,lsalzman 2024-06-12 16:40:32 +00:00
D3D11YCbCrImage.h Bug 1901928 - Remvoe D3D11YCbCrImage class r=gfx-reviewers,lsalzman 2024-06-12 16:40:32 +00:00
DcompSurfaceImage.cpp
DcompSurfaceImage.h Bug 1900677 - Add a capability to recycle DataSourceSurface allocated in CanvasTranslator::LookupSourceSurfaceFromSurfaceDescriptor() if possible r=gfx-reviewers,lsalzman 2024-06-06 03:25:53 +00:00
DirectionUtils.h
DMABUFSurfaceImage.cpp
DMABUFSurfaceImage.h
Effects.cpp
Effects.h
FrameMetrics.cpp Bug 1902313 - Propagate overflow styles to APZ. r=hiro 2024-06-24 21:14:40 +00:00
FrameMetrics.h Bug 1902313 - Propagate overflow styles to APZ. r=hiro 2024-06-24 21:14:40 +00:00
GLImages.cpp
GLImages.h
GPUVideoImage.h
ImageContainer.cpp Bug 1907121 - Move YCbCrUtils API assertions to caller side r=gfx-reviewers,nical 2024-07-18 21:02:33 +00:00
ImageContainer.h Bug 1902157 - Change NVImage::SetData return type to nsresult r=media-playback-reviewers,padenot 2024-06-14 17:39:32 +00:00
ImageDataSerializer.cpp Bug 1907121 - Move YCbCrUtils API assertions to caller side r=gfx-reviewers,nical 2024-07-18 21:02:33 +00:00
ImageDataSerializer.h
ImageTypes.h Bug 1901928 - Remvoe D3D11YCbCrImage class r=gfx-reviewers,lsalzman 2024-06-12 16:40:32 +00:00
IMFYCbCrImage.cpp
IMFYCbCrImage.h
IPDLActor.h
LayersTypes.cpp Bug 1901475 - Prevent to convert video from YUV to RGB if video is not updated in CanvasTranslator::LookupSourceSurfaceFromSurfaceDescriptor() r=gfx-reviewers,lsalzman 2024-06-11 04:19:40 +00:00
LayersTypes.h Bug 1901475 - Prevent to convert video from YUV to RGB if video is not updated in CanvasTranslator::LookupSourceSurfaceFromSurfaceDescriptor() r=gfx-reviewers,lsalzman 2024-06-11 04:19:40 +00:00
LayerUserData.h
MacIOSurfaceHelpers.cpp Bug 1907121 - Move YCbCrUtils API assertions to caller side r=gfx-reviewers,nical 2024-07-18 21:02:33 +00:00
MacIOSurfaceHelpers.h Bug 1900677 - Add a capability to recycle DataSourceSurface allocated in CanvasTranslator::LookupSourceSurfaceFromSurfaceDescriptor() if possible r=gfx-reviewers,lsalzman 2024-06-06 03:25:53 +00:00
MacIOSurfaceImage.cpp
MacIOSurfaceImage.h
MemoryPressureObserver.cpp
MemoryPressureObserver.h
moz.build Bug 1897976 - Update existing tests involving sidebar-button in the nav bar for when sidebar.revamp pref is flipped on r=places-reviewers,sidebar-reviewers,urlbar-reviewers,mak,sfoster,Gijs,sclements 2024-07-12 15:58:29 +00:00
NativeLayer.h
NativeLayerCA.h
NativeLayerCA.mm Bug 1883946: Allow AVSampleBufferDisplayLayer to enqueue a sample even when it doesn't want one. r=mac-reviewers,mstange 2024-05-30 20:49:59 +00:00
NativeLayerWayland.cpp
NativeLayerWayland.h
OOPCanvasRenderer.h
PersistentBufferProvider.cpp
PersistentBufferProvider.h
ProfilerScreenshots.cpp
ProfilerScreenshots.h
RecordedCanvasEventImpl.h
RemoteTextureMap.cpp Bug 1898238 - Keep SharedSurface_EGLImages alive but do not recycle them. r=sotaro,jgilbert 2024-07-22 20:23:38 +00:00
RemoteTextureMap.h
RepaintRequest.cpp
RepaintRequest.h
SampleTime.cpp
SampleTime.h
ScreenshotGrabber.cpp
ScreenshotGrabber.h
ScrollableLayerGuid.cpp
ScrollableLayerGuid.h
ScrollbarData.h
ShareableCanvasRenderer.cpp
ShareableCanvasRenderer.h
SourceSurfaceSharedData.cpp
SourceSurfaceSharedData.h
SurfacePool.h
SurfacePoolCA.h
SurfacePoolCA.mm
SurfacePoolWayland.cpp
SurfacePoolWayland.h
SyncObject.cpp
SyncObject.h
TextureSourceProvider.cpp
TextureSourceProvider.h
TextureWrapperImage.cpp
TextureWrapperImage.h
TransactionIdAllocator.h
TreeTraversal.h Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,necko-reviewers,geckoview-reviewers,application-update-reviewers,media-playback-reviewers,devtools-reviewers,anti-tracking-reviewers,profiler-reviewers,win-reviewers,migration-reviewers,padenot,mconley,nchevobbe,kershaw,gstoll,mstange,bytesized,m_kato 2024-07-17 11:15:31 +00:00
UpdateImageHelper.h
ZoomConstraints.cpp
ZoomConstraints.h