gecko-dev/gfx/wr/webrender_api
sotaro 33159b53db Bug 1824309 - Add FramePublishId to new_frame_ready() to add a way to control the processing of ResultMsg messages r=gfx-reviewers,lsalzman
It is a preparation for Bug 1804233. From bug 1776885 comment 6, we need to defer WebRender rendering on render thread if remote texture is not ready. To do it, ResultMsg messages handling needs to be controlled.

By adding the followings, ResultMsg messages handling could be controlled by RenderThread.
-  FramePublishId to new_frame_ready()
-  Renderer::set_target_frame_publish_id()

new_frame_ready() has frame_publish_id. The publish_id could be set to Renderer::set_target_frame_publish_id(). Then Renderer::update() defers processing of ResultMsg, if frame_publish_id of ResultMsg::PublishDocument exceeds target_frame_publish_id.

Differential Revision: https://phabricator.services.mozilla.com/D173512
2023-04-01 05:14:10 +00:00
..
src Bug 1824309 - Add FramePublishId to new_frame_ready() to add a way to control the processing of ResultMsg messages r=gfx-reviewers,lsalzman 2023-04-01 05:14:10 +00:00
Cargo.toml Bug 1776096 - Bump WebRender crate versions. r=jrmuizel 2022-06-24 04:11:26 +00:00