From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 3A153E00B6D; Wed, 13 Jan 2016 13:12:36 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (richard.rojfors[at]gmail.com) * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [74.125.82.43 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 648F2E00B66 for ; Wed, 13 Jan 2016 13:12:33 -0800 (PST) Received: by mail-wm0-f43.google.com with SMTP id l65so310271010wmf.1 for ; Wed, 13 Jan 2016 13:12:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:content-type:mime-version :content-transfer-encoding; bh=ebkLGrCa8g0uocg6FgDYqz02H7K3Z10/vfM6eoxAtf8=; b=Drga1wtlhBKWaemqUo38/xnzdnpAAZV3Y4ItAY91K40QZM2sEWxjbDVFNY2S63FYDH 5FihcAv1piKLTvHXV9tVScBvqjgt4AJZJIiJonChHZnAv10M2PrQCIY/pJcIrz7apv4r tbCy0BD6pKtfySbCXCPfq3Egl/v2Q1IKsl8RfrMatkhIh45wgZR+NB/mKiyi3CYCaaNW bgGR0M1mgq0ngUHp2R/5VACC4aMBHqxIepifPSXWEem0d4+tKQkyE/bOE1ryIsxz7Qoh GnmY+RvwhSTcg5IJO2JkznSkx8glgjJNG0kwtTiY1kWrYHxy4YjrMWZZlIAxqjsXGlkc Gczw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:date:content-type :mime-version:content-transfer-encoding; bh=ebkLGrCa8g0uocg6FgDYqz02H7K3Z10/vfM6eoxAtf8=; b=Mxk6R9r4Dk30XjnQMY9KRP3B86P19xVyvuwNjPcwzV+yiFyzDAzJ4hAZKE1Ojwidjr x+bBkUl0bBhLhHalSMMFg9ytJr630wrf8sKg4g1upXQA77XCVSGiKWVI52OaGr1TYUqy TOEbPNNQ3W1Oxi7Ce+jqPwhjL5wEDSV7i3UxWPw0JMlyp/WqyHWLjQ6SftBDjbqbop7d rfpBy/bHGrSCVkiyP4WSzDaXjiLlJNQ6R+MZ+HXcFb6v0mzWyoxKirm0VUPLbF88DVRl pJ+j0RFgcZQyjzoRZmwgBqWvaFoMYtKzVqEtEWtRFPT+C1/+teJUJ9aKrtB1d7+5He5s IUKA== X-Gm-Message-State: ALoCoQmrXiXLhyiu+Sv1a7NXn64rajAxmqzNFaURIWuuUDUvCbQwf/Pr9LAafXUVpGui8YbMlXu6GtagGpyCVB2nXvS8JN+mqg== X-Received: by 10.28.129.202 with SMTP id c193mr27016240wmd.35.1452719552427; Wed, 13 Jan 2016 13:12:32 -0800 (PST) Received: from lillan (h196n19-vrr-a31.ias.bredband.telia.com. [81.230.151.196]) by smtp.gmail.com with ESMTPSA id q4sm3124693wja.6.2016.01.13.13.12.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jan 2016 13:12:31 -0800 (PST) Message-ID: <1452719550.20224.6.camel@gmail.com> From: Richard =?ISO-8859-1?Q?R=F6jfors?= To: "meta-freescale@yoctoproject.org" Date: Wed, 13 Jan 2016 22:12:30 +0100 X-Mailer: Evolution 3.18.2-0ubuntu1~wily1 Mime-Version: 1.0 Subject: [meta-fsl-arm][PATCH] weston: gal2d-renderer: Do not flip buffers if the output damage is empty X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jan 2016 21:12:36 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit There is no need go through all views and copy nothing and flip buffers. Signed-off-by: Richard Röjfors ---  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