Rename end_frame to trim in iced_wgpu
This commit is contained in:
parent
76c5306581
commit
175a53bc86
5 changed files with 8 additions and 8 deletions
|
|
@ -339,7 +339,7 @@ impl State {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn end_frame(&mut self) {
|
||||
pub fn trim(&mut self) {
|
||||
self.prepare_layer = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -148,16 +148,16 @@ impl Renderer {
|
|||
self.prepare(&mut encoder, viewport);
|
||||
self.render(&mut encoder, target, clear_color, viewport);
|
||||
|
||||
self.quad.end_frame();
|
||||
self.triangle.end_frame();
|
||||
self.text.end_frame();
|
||||
self.quad.trim();
|
||||
self.triangle.trim();
|
||||
self.text.trim();
|
||||
|
||||
// TODO: Move to runtime!
|
||||
self.engine.text_pipeline.trim();
|
||||
|
||||
#[cfg(any(feature = "svg", feature = "image"))]
|
||||
{
|
||||
self.image.end_frame();
|
||||
self.image.trim();
|
||||
self.image_cache.borrow_mut().trim();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ impl State {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn end_frame(&mut self) {
|
||||
pub fn trim(&mut self) {
|
||||
self.prepare_layer = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -433,7 +433,7 @@ impl State {
|
|||
layer_count
|
||||
}
|
||||
|
||||
pub fn end_frame(&mut self) {
|
||||
pub fn trim(&mut self) {
|
||||
self.cache.trim();
|
||||
self.storage.trim();
|
||||
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@ impl State {
|
|||
layer_count
|
||||
}
|
||||
|
||||
pub fn end_frame(&mut self) {
|
||||
pub fn trim(&mut self) {
|
||||
self.storage.trim();
|
||||
|
||||
self.prepare_layer = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue