gecko-dev/gfx
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
..
2d Bug 1908587 - Backout changeset 8fe914e33e27 (bug 1892913, patch 22), so that we explicitly use a CGLayer-backed quartz surface when appropriate. r=gfx-reviewers,jrmuizel 2024-07-19 07:46:19 +00:00
angle Bug 1888340 - [angle] Cherry-pick to "Add GLSL variable byte size limits to ShBuiltInResources." r=gfx-reviewers,lsalzman 2024-06-24 19:44:03 +00:00
cairo Bug 1908587 - Revert all cairo-quartz code (quartz-surface, quartz-font, quartz-image) to the version prior to the cairo-1.18.0 update. r=gfx-reviewers,jrmuizel 2024-07-19 07:46:19 +00:00
config Bug 1901257 - Add a pref to control the threshold for slow cpu frames. r=gfx-reviewers,gw 2024-06-11 10:33:44 +00:00
docs
gl 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
graphite2 Bug 1893001 - Fall through to the lower block for Android builds. r=jfkthame 2024-07-23 17:02:39 +00:00
harfbuzz Bug 1905166 - Update harfbuzz to 9.0.0 r=gfx-reviewers,lsalzman 2024-07-02 10:42:07 +00:00
ipc Bug 1907135 - Do not treat GPU process loss as unstable whilst application is in background. r=aosmond 2024-07-23 17:06:21 +00:00
layers Bug 1908585 - Disable overlay only for slow present video r=gfx-reviewers,lsalzman 2024-07-24 00:21:16 +00:00
ots
qcms
skia
src Bug 1902718 - Use Etagere for DrawTargetWebgl allocation. r=nical 2024-06-25 14:16:23 +00:00
tests Bug 1907663 - Add scale factors to environment data r=emilio 2024-07-21 08:43:07 +00:00
thebes Bug 1908587 - Backout changeset 8fe914e33e27 (bug 1892913, patch 22), so that we explicitly use a CGLayer-backed quartz surface when appropriate. r=gfx-reviewers,jrmuizel 2024-07-19 07:46:19 +00:00
vr
webrender_bindings Bug 1908585 - Disable overlay only for slow present video r=gfx-reviewers,lsalzman 2024-07-24 00:21:16 +00:00
wgpu_bindings Bug 1907222: Properly truncate overly long WebGPU error messages. r=webgpu-reviewers,ErichDonGubler 2024-07-19 15:25:24 +00:00
wr Bug 1903981 - Do scene-related memory deallocations on the scene builder thread. r=gw 2024-07-18 07:53:49 +00:00
ycbcr Bug 1907121 - Return error for non-I444 Identity color space in ConvertYCbCrToRGB32 r=gfx-reviewers,nical 2024-07-18 21:02:34 +00:00
metrics.yaml
moz.build