From 43978b79e68cea27a8445a1c6fbc00e7226885c1 Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Mon, 30 Mar 2020 23:37:29 +0000 Subject: [PATCH] Bug 1626114 - Remove unused update_program_cache. r=kvark Differential Revision: https://phabricator.services.mozilla.com/D68931 --HG-- extra : moz-landing-system : lando --- gfx/webrender_bindings/src/bindings.rs | 6 ------ gfx/wr/webrender/src/device/gl.rs | 4 ---- gfx/wr/webrender/src/renderer.rs | 6 ------ 3 files changed, 16 deletions(-) diff --git a/gfx/webrender_bindings/src/bindings.rs b/gfx/webrender_bindings/src/bindings.rs index dca8a0d84f00..648f9e4ab276 100644 --- a/gfx/webrender_bindings/src/bindings.rs +++ b/gfx/webrender_bindings/src/bindings.rs @@ -1108,12 +1108,6 @@ pub unsafe extern "C" fn remove_program_binary_disk_cache(prof_path: &nsAString) } } -#[no_mangle] -pub extern "C" fn wr_renderer_update_program_cache(renderer: &mut Renderer, program_cache: &mut WrProgramCache) { - let program_cache = Rc::clone(&program_cache.rc_get()); - renderer.update_program_cache(program_cache); -} - // This matches IsEnvSet in gfxEnv.h fn env_var_to_bool(key: &'static str) -> bool { env::var(key).ok().map_or(false, |v| !v.is_empty()) diff --git a/gfx/wr/webrender/src/device/gl.rs b/gfx/wr/webrender/src/device/gl.rs index 4bd97420c4a8..e239caff7461 100644 --- a/gfx/wr/webrender/src/device/gl.rs +++ b/gfx/wr/webrender/src/device/gl.rs @@ -1601,10 +1601,6 @@ impl Device { &self.gl } - pub fn update_program_cache(&mut self, cached_programs: Rc) { - self.cached_programs = Some(cached_programs); - } - /// Ensures that the maximum texture size is less than or equal to the /// provided value. If the provided value is less than the value supported /// by the driver, the latter is used. diff --git a/gfx/wr/webrender/src/renderer.rs b/gfx/wr/webrender/src/renderer.rs index ca4cc4714cd7..00c009c597ec 100644 --- a/gfx/wr/webrender/src/renderer.rs +++ b/gfx/wr/webrender/src/renderer.rs @@ -2570,12 +2570,6 @@ impl Renderer { self.pipeline_info.epochs.get(&(pipeline_id, document_id)).cloned() } - // update the program cache with new binaries, e.g. when some of the lazy loaded - // shader programs got activated in the mean time - pub fn update_program_cache(&mut self, cached_programs: Rc) { - self.device.update_program_cache(cached_programs); - } - /// Processes the result queue. /// /// Should be called before `render()`, as texture cache updates are done here.