Closed
Bug 1405952
Opened 7 years ago
Closed 7 years ago
Remove PWebRenderBridge::SetDisplayListSync
Categories
(Core :: Graphics: WebRender, enhancement, P1)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox57 | --- | unaffected |
firefox58 | --- | unaffected |
People
(Reporter: sotaro, Assigned: sotaro)
References
Details
(Whiteboard: [wr-mvp])
Attachments
(1 file, 2 obsolete files)
13.24 KB,
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
SetDisplayListSync seems not necessary any more. It is used only when WebRenderLayerManager::mTarget exists. But WebRenderLayerManager::MakeSnapshotIfRequired() does not need it.
Assignee | ||
Comment 1•7 years ago
|
||
Assignee: nobody → sotaro.ikeda.g
Assignee | ||
Comment 2•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=e54a9d826d6bff142f30c21c628a892ff4a1ca06
Assignee | ||
Updated•7 years ago
|
Attachment #8915468 -
Flags: review?(bugmail)
Comment 3•7 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #0) > SetDisplayListSync seems not necessary any more. It is used only when > WebRenderLayerManager::mTarget exists. But > WebRenderLayerManager::MakeSnapshotIfRequired() does not need it. I don't understand this. It seems like MakeSnapshotIfRequired() still draws into mTarget, so doesn't it need the display list to have been sent to webrender synchronously? How we can we guarantee that the correct stuff ends up in mTarget otherwise?
Updated•7 years ago
|
Whiteboard: [wr-mvp] [triage]
Updated•7 years ago
|
Updated•7 years ago
|
Whiteboard: [wr-mvp] [triage]
Assignee | ||
Comment 4•7 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #3) > > I don't understand this. It seems like MakeSnapshotIfRequired() still draws > into mTarget, so doesn't it need the display list to have been sent to > webrender synchronously? How we can we guarantee that the correct stuff ends > up in mTarget otherwise? SetDisplayListSync seems to be used to make that the peer WebRenderBridgeParent already received the DisplayList when MakeSnapshotIfRequired() is called. But it is not necessary. Because the order of messages(between 'async SetDisplayList' and 'sync GetSnapshot') is not changed if the message are sent by same WebRenderBridgeChild instance. This IPC characteristic is used for example by Bug 1364626 to address a reftest problem. Then when WebRenderBridgeParent::RecvGetSnapshot() was called, the peer WebRenderBridgeParent pushed the correct display list. WebRenderBridgeParent::RecvGetSnapshot() takes the snap shot synchronously, then we could get expected snapshot. Therefor I could not find the necessity of SetDisplayListSync usage. If reftest want to wait transaction complete WebRenderLayerManager::WaitOnTransactionProcessed() is used for it. It is my understanding for taking snapshot. Is there a problem that I did not recognize?
Comment 5•7 years ago
|
||
Comment on attachment 8915468 [details] [diff] [review] patch - Remove PWebRenderBridge::SetDisplayListSync Review of attachment 8915468 [details] [diff] [review]: ----------------------------------------------------------------- That makes sense, thanks for the explanation!
Attachment #8915468 -
Flags: review?(bugmail) → review+
Assignee | ||
Comment 6•7 years ago
|
||
Rebased.
Attachment #8915468 -
Attachment is obsolete: true
Attachment #8916174 -
Flags: review+
Assignee | ||
Comment 7•7 years ago
|
||
Comment on attachment 8916174 [details] [diff] [review] patch - Remove PWebRenderBridge::SetDisplayListSync :kanru, can you review the patch. The change to sync-messages.ini needs IPC peer review.
Attachment #8916174 -
Flags: review?(kchen)
Updated•7 years ago
|
Attachment #8916174 -
Flags: review?(kchen) → review+
Updated•7 years ago
|
Flags: needinfo?(kchen)
Assignee | ||
Comment 9•7 years ago
|
||
Thanks!
Assignee | ||
Comment 10•7 years ago
|
||
Rebased.
Attachment #8916174 -
Attachment is obsolete: true
Attachment #8920519 -
Flags: review+
Assignee | ||
Comment 11•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=973bcd7dddd0be7cbb1a44c1c03b8ccc8d579039
Comment 12•7 years ago
|
||
Pushed by sikeda@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/bbecf147fb53 Remove PWebRenderBridge::SetDisplayListSync r=kats,kanru
Updated•7 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [wr-mvp]
Comment 13•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/bbecf147fb53
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•