damage: add sync point before visualizing damage
This commit is contained in:
parent
d7d0cbf9e2
commit
dd332be995
1 changed files with 2 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ use {
|
|||
crate::{
|
||||
async_engine::AsyncEngine,
|
||||
fixed::Fixed,
|
||||
gfx_api::GfxApiOpt,
|
||||
ifs::wl_output::WlOutputGlobal,
|
||||
rect::{Rect, Region},
|
||||
renderer::renderer_base::RendererBase,
|
||||
|
|
@ -160,6 +161,7 @@ impl DamageVisualizer {
|
|||
let dx = -cursor_rect.x1();
|
||||
let dy = -cursor_rect.y1();
|
||||
let decay_millis = decay.as_millis() as u64 as f32;
|
||||
renderer.ops.push(GfxApiOpt::Sync);
|
||||
for entry in entries.iter().rev() {
|
||||
let region = Region::new(entry.rect);
|
||||
let region = region.subtract(&used);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue