Skip to contentSkip to conversation

weston: gal2d-renderer: Do not flip buffers if the output damage is empty

PATCH New Richard Röjfors 1 participant 1 message Jan 13, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 weston: gal2d-renderer: Do not flip buffers if the output damage is empty

There is no need go through all views and copy nothing and flip buffers.

---
 src/gal2d-renderer.c | 3 +++

 1 file changed, 3 insertions(+)
src/gal2d-renderer.c +0 -0
index d2a29ff..1c81287 100644
@@ -943,6 +943,9 @@ gal2d_renderer_repaint_output(struct weston_output *output,


  if (use_output(output) < 0)
  return;
+
+ if (!pixman_region32_not_empty(output_damage))
+ return;

  for (i = 0; i < 2; i++) pixman_region32_union(&go->buffer_damage[i],

Signature · 1 line
2.5.0