[][src]Trait webrender::ProgramCacheObserver

pub trait ProgramCacheObserver {
    fn update_disk_cache(&self, entries: Vec<Arc<ProgramBinary>>);
fn try_load_shader_from_disk(
        &self,
        digest: &ProgramSourceDigest,
        program_cache: &Rc<ProgramCache>
    );
fn notify_program_binary_failed(&self, program_binary: &Arc<ProgramBinary>); }

The interfaces that an application can implement to handle ProgramCache update

Required methods

fn update_disk_cache(&self, entries: Vec<Arc<ProgramBinary>>)

fn try_load_shader_from_disk(
    &self,
    digest: &ProgramSourceDigest,
    program_cache: &Rc<ProgramCache>
)

fn notify_program_binary_failed(&self, program_binary: &Arc<ProgramBinary>)

Loading content...

Implementors

Loading content...