Closed
Bug 1333288
Opened 9 years ago
Closed 9 years ago
assert failure in wr_profiler_set_enabled()
Categories
(Core :: Graphics: WebRender, defect)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla54
People
(Reporter: sotaro, Assigned: sotaro)
Details
Attachments
(1 file)
|
1.10 KB,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
When I updated "gfx.webrender.profiler.enable" pref from "about:config", assert of wr_profiler_set_enabled() was failed. It was called from main thread.
-----------------------------
#[no_mangle]
pub extern fn wr_profiler_set_enabled(window: &mut WrWindowState, enabled: bool)
{
assert!( unsafe { is_in_compositor_thread() });
window.renderer.set_profiler_enabled(enabled);
}
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → sotaro.ikeda.g
| Assignee | ||
Comment 1•9 years ago
|
||
| Assignee | ||
Updated•9 years ago
|
Attachment #8829714 -
Flags: review?(nical.bugzilla)
| Assignee | ||
Comment 2•9 years ago
|
||
attachment 8829714 [details] [diff] [review] is not ideal, but it seems ok as temporary solution. wr_profiler_set_enabled() is going to be removed when render thread is enabled.
Comment 3•9 years ago
|
||
Comment on attachment 8829714 [details] [diff] [review]
patch - call wr_profiler_set_enabled() on compositor thread
Review of attachment 8829714 [details] [diff] [review]:
-----------------------------------------------------------------
This is fine, although I have a preference towards only allowing CompositorBridgeParent::SetWebRenderProfilerEnabled to be called on the compositor thread. and have the pref callback that calls it take care of remoting to the proper thread.
Attachment #8829714 -
Flags: review?(nical.bugzilla) → review+
| Assignee | ||
Comment 4•9 years ago
|
||
(In reply to Nicolas Silva [:nical] from comment #3)
> Comment on attachment 8829714 [details] [diff] [review]
> patch - call wr_profiler_set_enabled() on compositor thread
>
> Review of attachment 8829714 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> This is fine, although I have a preference towards only allowing
> CompositorBridgeParent::SetWebRenderProfilerEnabled to be called on the
> compositor thread. and have the pref callback that calls it take care of
> remoting to the proper thread.
Yea, I agree. But the patch seems ok as a short time solution.
| Assignee | ||
Comment 5•9 years ago
|
||
| Assignee | ||
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 6•9 years ago
|
||
The commit message is missing the bug number. I'll do a backout/reland with that fixed and DONTBUILD to avoid rerunning builds on it.
Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/projects/graphics/rev/12cb4acdb646
call wr_profiler_set_enabled() on compositor thread r=nical DONTBUILD
Updated•9 years ago
|
Target Milestone: --- → mozilla54
You need to log in
before you can comment on or make changes to this bug.
Description
•