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:
Kartikaya Gupta 2017-03-24 10:07:00 -04:00
Родитель 373e07ac81
Коммит 2f4b68419d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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));
}