Bug 1464473 - Update for API change in WR PR 2764. r?Gankro draft
authorKartikaya Gupta <kgupta@mozilla.com>
Tue, 29 May 2018 08:45:48 -0400
changeset 800881 91ffae362fafa17d00af7f1719da7098752787de
parent 800880 93b08e28671e973a63213c2c1e5012cd8389c543
child 800882 7b7eab84b7e72950f58c014112a3a98c4085150c
push id111510
push userkgupta@mozilla.com
push dateTue, 29 May 2018 12:47:09 +0000
reviewersGankro
bugs1464473
milestone62.0a1
Bug 1464473 - Update for API change in WR PR 2764. r?Gankro MozReview-Commit-ID: AScuSY0OViR
gfx/webrender_bindings/src/bindings.rs
--- a/gfx/webrender_bindings/src/bindings.rs
+++ b/gfx/webrender_bindings/src/bindings.rs
@@ -822,17 +822,17 @@ pub unsafe extern "C" fn wr_thread_pool_
 pub unsafe extern "C" fn wr_thread_pool_delete(thread_pool: *mut WrThreadPool) {
     Box::from_raw(thread_pool);
 }
 
 pub struct WrProgramCache(Rc<ProgramCache>);
 
 #[no_mangle]
 pub unsafe extern "C" fn wr_program_cache_new() -> *mut WrProgramCache {
-    let program_cache = ProgramCache::new();
+    let program_cache = ProgramCache::new(None);
     Box::into_raw(Box::new(WrProgramCache(program_cache)))
 }
 
 /// cbindgen:postfix=WR_DESTRUCTOR_SAFE_FUNC
 #[no_mangle]
 pub unsafe extern "C" fn wr_program_cache_delete(program_cache: *mut WrProgramCache) {
     Rc::from_raw(program_cache);
 }