All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-fsl-arm][PATCH] weston: gal2d-renderer: Do not flip buffers if the output damage is empty
@ 2016-01-13 21:12 Richard Röjfors
  0 siblings, 0 replies; only message in thread
From: Richard Röjfors @ 2016-01-13 21:12 UTC (permalink / raw)
  To: meta-freescale

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

Signed-off-by: Richard Röjfors <richard@puffinpack.se>
---
 src/gal2d-renderer.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gal2d-renderer.c b/src/gal2d-renderer.c
index d2a29ff..1c81287 100644
--- a/src/gal2d-renderer.c
+++ b/src/gal2d-renderer.c
@@ -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],
-- 
2.5.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-13 21:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-13 21:12 [meta-fsl-arm][PATCH] weston: gal2d-renderer: Do not flip buffers if the output damage is empty Richard Röjfors

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.