Closed Bug 1482050 Opened 6 years ago Closed 6 years ago

Fix webrender epoch handling in WebRenderBridgeParent::RecvEmptyTransaction()

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: sotaro, Assigned: sotaro)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Created by Bug 1481950 comment 6.
Assignee: nobody → sotaro.ikeda.g
Blocks: 1481950
https://treeherder.mozilla.org/#/jobs?repo=try&revision=471d81ad6434be150c6b105bd70134474cf609e4
attachment 8998761 [details] [diff] [review] seems to have a timing dependent bug. The Epoch is delivered to RenderBackend via SceneBuilder thread. But frame generation is delivered directly to RenderBackend without SceneBuilder thread. Therefore there could be a case that frame generation happens before epoch delivery to RenderBackend. If it happens, did composite is not delivered correctly to client side.
If transaction has resource updates, it trigger a next frame generation. But if it does not have the resource updates, it does not trigger a next frame generation.
To handle empty transaction with ScrollUpdates correctly, we need to trigger a frame generation after SceneBuilder thread handled epoch update message. But the "epoch update message" is delivered via SceneBuilder thread and "frame generation" is delivered directly to RenderBackend thread. So attachment 8998761 [details] [diff] [review] has a risk of do frame generation before "epoch update message".

To avoid this, we need to trigger ScheduleGenerateFrame() after "epoch update message". But current SceneBuilder could not trigger generate frame in this case. Though SceneBuilder could trigger the generate frame if Transaction updates display list or updates resources.
Attachment #8998761 - Attachment is obsolete: true
Comment on attachment 8999798 [details] [diff] [review]
patch - Fix webrender epoch handling in WebRenderBridgeParent::RecvEmptyTransaction()

:nical, can you feedback to the patch?
Attachment #8999798 - Flags: feedback?(nical.bugzilla)
Attachment #8999798 - Flags: feedback?(nical.bugzilla)
By Comment 8, we could not address the problem this way.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Since Bug 1489993, it might better to revisit this.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: