[gnome-shell/gbsneto/more-clutter-content: 2/3] st: Stop checking for ClutterTexture



commit 339d5e31b243ef2a7f9d5afa5778f104921745d2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Jan 29 12:22:26 2019 -0200

    st: Stop checking for ClutterTexture
    
    _st_create_shadow_pipeline_from_actor creates shadow pipelines
    from actors. This function special-cases ClutterTexture as a
    small performance improvement, since we can have access to the
    CoglTexture easily with it. However, recent commits removed all
    usage of ClutterTexture from GNOME Shell, rendering this optimization
    useless.
    
    Remove the optimization from _st_create_shadow_pipeline_from_actor.

 src/st/st-private.c | 11 -----------
 1 file changed, 11 deletions(-)
---
diff --git a/src/st/st-private.c b/src/st/st-private.c
index cd080d611..3fa278b73 100644
--- a/src/st/st-private.c
+++ b/src/st/st-private.c
@@ -439,17 +439,6 @@ _st_create_shadow_pipeline_from_actor (StShadow     *shadow_spec,
   if (width == 0 || height == 0)
     return NULL;
 
-  if (CLUTTER_IS_TEXTURE (actor))
-    {
-      CoglTexture *texture;
-
-      texture = clutter_texture_get_cogl_texture (CLUTTER_TEXTURE (actor));
-      if (texture &&
-          cogl_texture_get_width (texture) == width &&
-          cogl_texture_get_height (texture) == height)
-        shadow_pipeline = _st_create_shadow_pipeline (shadow_spec, texture);
-    }
-
   if (shadow_pipeline == NULL)
     {
       CoglTexture *buffer;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]