[gnome-photos] gegl-gtk-view-helper: Optimize blitting
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] gegl-gtk-view-helper: Optimize blitting
- Date: Fri, 23 Jan 2015 12:00:01 +0000 (UTC)
commit 04d201fff34fe37d27c22583be37ff558bb91f2d
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Jan 23 12:40:41 2015 +0100
gegl-gtk-view-helper: Optimize blitting
Use Babl's cairo-ARGB32 format. It has some optimizations and is
noticeably faster than the equivalent B'aG'aR'aA u8.
From gegl-gtk commit 3d28897caf9ee0bd091ea93df5a2a00fe4355302
src/gegl-gtk-view-helper.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gegl-gtk-view-helper.c b/src/gegl-gtk-view-helper.c
index 0552478..99db47e 100644
--- a/src/gegl-gtk-view-helper.c
+++ b/src/gegl-gtk-view-helper.c
@@ -260,7 +260,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]