зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1626114 - Remove unused update_program_cache. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D68931 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
d1fe81058a
Коммит
43978b79e6
|
@ -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())
|
||||
|
|
|
@ -1601,10 +1601,6 @@ impl Device {
|
|||
&self.gl
|
||||
}
|
||||
|
||||
pub fn update_program_cache(&mut self, cached_programs: Rc<ProgramCache>) {
|
||||
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.
|
||||
|
|
|
@ -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<ProgramCache>) {
|
||||
self.device.update_program_cache(cached_programs);
|
||||
}
|
||||
|
||||
/// Processes the result queue.
|
||||
///
|
||||
/// Should be called before `render()`, as texture cache updates are done here.
|
||||
|
|
Загрузка…
Ссылка в новой задаче