зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1431787 - Mark wr_dec_ref_arc safe to be called by the WebRenderAPI destructor when WR is not built. r=lsalzman a=RyanVM
Landing on a CLOSED TREE because this needs to go to beta to fix the build. MozReview-Commit-ID: cSwZ2Bp242
This commit is contained in:
Родитель
9f2721b19b
Коммит
6f56b6c848
|
@ -2055,6 +2055,7 @@ pub extern "C" fn wr_add_ref_arc(arc: &ArcVecU8) -> *const VecU8 {
|
|||
Arc::into_raw(arc.clone())
|
||||
}
|
||||
|
||||
/// cbindgen:postfix=WR_DESTRUCTOR_SAFE_FUNC
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn wr_dec_ref_arc(arc: *const VecU8) {
|
||||
Arc::from_raw(arc);
|
||||
|
|
|
@ -1022,7 +1022,7 @@ WR_FUNC;
|
|||
|
||||
WR_INLINE
|
||||
void wr_dec_ref_arc(const VecU8 *aArc)
|
||||
WR_FUNC;
|
||||
WR_DESTRUCTOR_SAFE_FUNC;
|
||||
|
||||
WR_INLINE
|
||||
void wr_dp_clear_save(WrState *aState)
|
||||
|
|
Загрузка…
Ссылка в новой задаче