mirror of
https://github.com/penpot/penpot.git
synced 2026-07-20 21:17:44 +00:00
⚡ Fix slow zoom/edit on Firefox+NVIDIA WebGL renderer (#10371)
This commit is contained in:
parent
8e548c8c54
commit
07de0e92d5
@ -2187,7 +2187,6 @@ impl RenderState {
|
||||
// quality pass completes.
|
||||
self.surfaces
|
||||
.reset_interactive_transform(self.background_color);
|
||||
self.surfaces.seed_backbuffer_from_target();
|
||||
self.interactive_target_seeded = false;
|
||||
} else {
|
||||
self.reset_canvas();
|
||||
|
||||
@ -907,17 +907,6 @@ impl Surfaces {
|
||||
self.tile_atlas.canvas().clear(skia::Color::TRANSPARENT);
|
||||
}
|
||||
|
||||
/// Seed `Backbuffer` from `Target` (last presented frame).
|
||||
pub fn seed_backbuffer_from_target(&mut self) {
|
||||
let sampling_options = self.sampling_options;
|
||||
self.target.draw(
|
||||
self.backbuffer.canvas(),
|
||||
(0.0, 0.0),
|
||||
sampling_options,
|
||||
Some(&skia::Paint::default()),
|
||||
);
|
||||
}
|
||||
|
||||
fn reset_from_target(&mut self, target: skia::Surface) -> Result<()> {
|
||||
let dim = (target.width(), target.height());
|
||||
self.target = target;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user