Commit 1eb81a66 authored by Luca Barbato's avatar Luca Barbato Committed by Luca Barbato

Hide get_frame and needs_more_lookahead

They leak implementation details that will change soon.
parent fdbf7a8d
......@@ -573,7 +573,7 @@ impl<T: Pixel> Context<T> {
Ok(())
}
pub fn get_frame(&self, frame_number: u64) -> Arc<Frame<T>> {
fn get_frame(&self, frame_number: u64) -> Arc<Frame<T>> {
// Clones only the arc, so low cost overhead
self.frame_q.get(&frame_number).as_ref().unwrap().as_ref().unwrap().clone()
}
......@@ -586,7 +586,7 @@ impl<T: Pixel> Context<T> {
self.limit = limit;
}
pub fn needs_more_lookahead(&self) -> bool {
pub(crate) fn needs_more_lookahead(&self) -> bool {
self.needs_more_frames(self.frame_count) && self.frames_processed + LOOKAHEAD_FRAMES > self.frame_q.keys().last().cloned().unwrap_or(0)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment