[mutter/wip/carlosg/performance-improvements: 2/13] ClutterPaintNode: Avoid clearing the background on the root node
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/performance-improvements: 2/13] ClutterPaintNode: Avoid clearing the background on the root node
- Date: Fri, 5 May 2017 13:05:14 +0000 (UTC)
commit 29c3e04784795ca41794ca8d4b0955c8a7d258c6
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Apr 28 23:25:13 2017 +0200
ClutterPaintNode: Avoid clearing the background on the root node
The compositor will redraw over the whole thing, so it seems like
we can avoid clearing the background entirely.
clutter/clutter/clutter-paint-nodes.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/clutter/clutter/clutter-paint-nodes.c b/clutter/clutter/clutter-paint-nodes.c
index 3870ba6..bd417ce 100644
--- a/clutter/clutter/clutter-paint-nodes.c
+++ b/clutter/clutter/clutter-paint-nodes.c
@@ -111,12 +111,6 @@ G_DEFINE_TYPE (ClutterRootNode, clutter_root_node, CLUTTER_TYPE_PAINT_NODE)
static gboolean
clutter_root_node_pre_draw (ClutterPaintNode *node)
{
- ClutterRootNode *rnode = (ClutterRootNode *) node;
-
- cogl_framebuffer_clear (rnode->framebuffer,
- rnode->clear_flags,
- &rnode->clear_color);
-
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]