diff --git a/webrender/src/device/gl.rs b/webrender/src/device/gl.rs index 4bd97420c4..e239caff74 100644 --- a/webrender/src/device/gl.rs +++ b/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/webrender/src/renderer.rs b/webrender/src/renderer.rs index ca4cc4714c..00c009c597 100644 --- a/webrender/src/renderer.rs +++ b/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.