From: "Richard Röjfors" <richard.rojfors@gmail.com>
To: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: [meta-fsl-arm][PATCH] weston: gal2d-renderer: Do not flip buffers if the output damage is empty
Date: Wed, 13 Jan 2016 22:12:30 +0100 [thread overview]
Message-ID: <1452719550.20224.6.camel@gmail.com> (raw)
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
reply other threads:[~2016-01-13 21:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1452719550.20224.6.camel@gmail.com \
--to=richard.rojfors@gmail.com \
--cc=meta-freescale@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.