[gegl-gtk] Use Babl’s cairo-ARGB32 format when blit ting



commit 3d28897caf9ee0bd091ea93df5a2a00fe4355302
Author: jordi fita i mas <gmf trasto cat>
Date:   Sat Feb 1 18:54:49 2014 +0100

    Use Babl’s cairo-ARGB32 format when blitting
    
    This format has some optimizations and is noticeably faster than the
    equivalent B'aG'aR'aA u8.
    
        *  gegl-gtk/internal/view-helper.c (view_helper_draw): Use babl’s
           cairo-ARGB32 format when blitting the node.

 gegl-gtk/internal/view-helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl-gtk/internal/view-helper.c b/gegl-gtk/internal/view-helper.c
index 498e117..a7fb653 100644
--- a/gegl-gtk/internal/view-helper.c
+++ b/gegl-gtk/internal/view-helper.c
@@ -251,7 +251,7 @@ view_helper_draw(ViewHelper *self, cairo_t *cr, GdkRectangle *rect)
     gegl_node_blit(self->node,
                    self->scale,
                    &roi,
-                   babl_format("B'aG'aR'aA u8"),
+                   babl_format("cairo-ARGB32"),
                    (gpointer)buf,
                    GEGL_AUTO_ROWSTRIDE,
                    GEGL_BLIT_CACHE | (self->block ? 0 : GEGL_BLIT_DIRTY));


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