mirror of
https://github.com/penpot/penpot.git
synced 2025-07-12 10:27:16 +02:00
♻️ Refactor RenderState and GpuState
This commit is contained in:
parent
966e942a7f
commit
3e06c17a38
3 changed files with 63 additions and 61 deletions
|
@ -27,10 +27,6 @@ impl<'a> State<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn set_surface(&mut self, surface: skia::Surface) {
|
||||
self.render_state.surface = surface;
|
||||
}
|
||||
|
||||
pub fn use_shape(&'a mut self, id: Uuid) {
|
||||
if !self.shapes.contains_key(&id) {
|
||||
let new_shape = Shape::new(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue