diff options
author | Benjamin Otte <otte@redhat.com> | 2017-11-02 21:39:00 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-11-04 00:07:13 +0100 |
commit | ca3c23662cfe515d7de348aa42d07be7d4bb3e83 (patch) | |
tree | 725bde3b54c44588e2a7312fded868fb7a1facd5 /testsuite | |
parent | 8ba9ae601283be265e59c6092d61c099f8a17d65 (diff) | |
download | gtk+-ca3c23662cfe515d7de348aa42d07be7d4bb3e83.tar.gz |
GskTexture => GdkTexture
We want this thing to replace GdkPixbuf, so it has to live in GDK.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gsk/test-render-nodes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/gsk/test-render-nodes.c b/testsuite/gsk/test-render-nodes.c index c1a1d70bf4..19e4a1d0a1 100644 --- a/testsuite/gsk/test-render-nodes.c +++ b/testsuite/gsk/test-render-nodes.c @@ -521,7 +521,7 @@ load_node_file (GFile *file, gboolean generate) GskRenderNode *node; GskRenderer *renderer; GdkWindow *window; - GskTexture *texture = NULL; + GdkTexture *texture = NULL; cairo_surface_t *surface; char *png_file; cairo_surface_t *ref_surface; @@ -554,9 +554,9 @@ load_node_file (GFile *file, gboolean generate) texture = gsk_renderer_render_texture (renderer, node, NULL); surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, - gsk_texture_get_width (texture), - gsk_texture_get_height (texture)); - gsk_texture_download (texture, + gdk_texture_get_width (texture), + gdk_texture_get_height (texture)); + gdk_texture_download (texture, cairo_image_surface_get_data (surface), cairo_image_surface_get_stride (surface)); cairo_surface_mark_dirty (surface); |