[gthumb] webp loader: use _cairo_image_surface_flush_and_get_data
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] webp loader: use _cairo_image_surface_flush_and_get_data
- Date: Sun, 30 Jun 2013 08:40:58 +0000 (UTC)
commit 68bbb1ea6c0daae8afbb8a2229e55ba7139e58fc
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Jun 28 16:39:25 2013 +0200
webp loader: use _cairo_image_surface_flush_and_get_data
extensions/cairo_io/cairo-image-surface-webp.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/extensions/cairo_io/cairo-image-surface-webp.c b/extensions/cairo_io/cairo-image-surface-webp.c
index 35bf111..c1ebe9d 100644
--- a/extensions/cairo_io/cairo-image-surface-webp.c
+++ b/extensions/cairo_io/cairo-image-surface-webp.c
@@ -82,8 +82,6 @@ _cairo_image_surface_create_from_webp (GInputStream *istream,
metadata = _cairo_image_surface_get_metadata (surface);
metadata->has_alpha = (config.input.has_alpha);
- cairo_surface_flush (surface);
-
config.options.no_fancy_upsampling = 1;
#if SCALING_WORKS
@@ -99,7 +97,7 @@ _cairo_image_surface_create_from_webp (GInputStream *istream,
#elif G_BYTE_ORDER == G_BIG_ENDIAN
config.output.colorspace = MODE_ARGB;
#endif
- config.output.u.RGBA.rgba = (uint8_t *) cairo_image_surface_get_data (surface);
+ config.output.u.RGBA.rgba = (uint8_t *) _cairo_image_surface_flush_and_get_data (surface);
config.output.u.RGBA.stride = cairo_image_surface_get_stride (surface);
config.output.u.RGBA.size = cairo_image_surface_get_stride (surface) * height;
config.output.is_external_memory = 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]