Closed
Bug 1437949
Opened 6 years ago
Closed 6 years ago
wake_up implementation should poke the renderer to check for messages
Categories
(Core :: Graphics: WebRender, enhancement, P1)
Tracking
()
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
Details
(Whiteboard: [gfx-noted])
Attachments
(2 files)
The WR capturing mechanism relies on the wake_up callback [1] to process the DebugOutput message in the renderer's queue, which writes external images to files. Right now the wake_up callback is implemented as a no-op [2] when really what it should do is trigger a call to wr_renderer_update on the Renderer thread. [1] https://searchfox.org/mozilla-central/rev/9d47b5fb14152865ad1375eb3ee2e571d81ecdb9/gfx/webrender/src/render_backend.rs#644 [2] https://searchfox.org/mozilla-central/rev/9d47b5fb14152865ad1375eb3ee2e571d81ecdb9/gfx/webrender_bindings/RenderThread.cpp#468
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → bugmail
Assignee | ||
Comment 1•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=72504bbad1b495de87ef62756fbe2541d394b2b1
Comment hidden (mozreview-request) |
Comment 3•6 years ago
|
||
mozreview-review |
Comment on attachment 8950662 [details] Bug 1437949 - Make the wake_up WR notification poke the renderer. https://reviewboard.mozilla.org/r/219916/#review225726 ::: gfx/webrender_bindings/RenderThread.cpp:187 (Diff revision 1) > + return; > + } > + > + if (!IsInRenderThread()) { > + Loop()->PostTask( > + NewRunnableMethod<wr::WindowId>("wr::RenderThread::WaekUp", typo "WaekUp"
Attachment #8950662 -
Flags: review?(kvark) → review+
Assignee | ||
Comment 4•6 years ago
|
||
(In reply to Dzmitry Malyshau [:kvark] from comment #3) > typo "WaekUp" Good catch! Fixed.
Comment hidden (mozreview-request) |
Comment 6•6 years ago
|
||
Don't we need to call MakeCurrent() in RendererOGL::Update(), do we?
Comment 7•6 years ago
|
||
Good point, Sotaro. WebRender may need to upload some texture data, so GL context is needed to be valid.
Comment 8•6 years ago
|
||
Yea, and GL context needs to be current if there are multiple windows(multiple gl contexts).
Assignee | ||
Comment 9•6 years ago
|
||
Good point. I already triggered autolanding of this patch (and there's no way to stop it) but after it lands I'll push a follow-up to add the MakeCurrent call.
Updated•6 years ago
|
Priority: -- → P3
Comment 10•6 years ago
|
||
Pushed by kgupta@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/37935fa7ffc2 Make the wake_up WR notification poke the renderer. r=kvark
Updated•6 years ago
|
Blocks: stage-wr-nightly
Priority: P3 → P1
Comment 11•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/37935fa7ffc2
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Assignee | ||
Comment 12•6 years ago
|
||
Attachment #8951166 -
Flags: review?(sotaro.ikeda.g)
Updated•6 years ago
|
Attachment #8951166 -
Flags: review?(sotaro.ikeda.g) → review+
Comment 13•6 years ago
|
||
Pushed by kgupta@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/16fab079284b Follow-up to make the GL context current before poking the WR renderer. r=sotaro
Comment 14•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/16fab079284b
You need to log in
before you can comment on or make changes to this bug.
Description
•