зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1349643 - Loosen thread assertion slightly. r=nical
When changing the webrender profiler enabled/disabled state, the change propagates to webrender via the main thread. This violates a thread assertion. However, the thread assertion is mostly for documentation, so we can loosen it a little to allow for this scenario. MozReview-Commit-ID: FWfAchQUEUq
This commit is contained in:
Родитель
373e07ac81
Коммит
2f4b68419d
|
@ -882,7 +882,7 @@ pub extern "C" fn wr_api_generate_frame(api: &mut RenderApi) {
|
|||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn wr_api_send_external_event(api: &mut RenderApi, evt: usize) {
|
||||
assert!(unsafe { is_in_compositor_thread() });
|
||||
assert!(unsafe { !is_in_render_thread() });
|
||||
|
||||
api.send_external_event(ExternalEvent::from_raw(evt));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче