[clutter] test-cogl-pixel-buffer: Use the new name for CoglPixelArray



commit 86dce2fd98efe934b0223580e00424bace043809
Author: Neil Roberts <neil linux intel com>
Date:   Mon May 16 16:07:19 2011 +0100

    test-cogl-pixel-buffer: Use the new name for CoglPixelArray
    
    Cogl has changed the name of the experimental CoglPixelArray API to
    CoglPixelBuffer. This updates the test to reflect that so it will
    continue to build.

 tests/conform/test-cogl-pixel-buffer.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/tests/conform/test-cogl-pixel-buffer.c b/tests/conform/test-cogl-pixel-buffer.c
index 112c646..09faa57 100644
--- a/tests/conform/test-cogl-pixel-buffer.c
+++ b/tests/conform/test-cogl-pixel-buffer.c
@@ -65,12 +65,12 @@ create_map_tile (TestTile *tile)
   unsigned int stride = 0;
   guint8 *line;
 
-  buffer = cogl_pixel_array_new_with_size (TILE_SIZE,
-                                           TILE_SIZE,
-                                           COGL_PIXEL_FORMAT_RGBA_8888,
-                                           &stride);
+  buffer = cogl_pixel_buffer_new_with_size (TILE_SIZE,
+                                            TILE_SIZE,
+                                            COGL_PIXEL_FORMAT_RGBA_8888,
+                                            &stride);
 
-  g_assert (cogl_is_pixel_array (buffer));
+  g_assert (cogl_is_pixel_buffer (buffer));
   g_assert (cogl_is_buffer (buffer));
 
   cogl_buffer_set_update_hint (buffer, COGL_BUFFER_UPDATE_HINT_DYNAMIC);
@@ -154,12 +154,12 @@ create_set_data_tile (TestTile *tile)
   guchar *data;
   guint i;
 
-  buffer = cogl_pixel_array_new_with_size (TILE_SIZE,
-                                           TILE_SIZE,
-                                           COGL_PIXEL_FORMAT_RGBA_8888,
-                                           &rowstride);
+  buffer = cogl_pixel_buffer_new_with_size (TILE_SIZE,
+                                            TILE_SIZE,
+                                            COGL_PIXEL_FORMAT_RGBA_8888,
+                                            &rowstride);
 
-  g_assert (cogl_is_pixel_array (buffer));
+  g_assert (cogl_is_pixel_buffer (buffer));
   g_assert (cogl_is_buffer (buffer));
   g_assert_cmpint (cogl_buffer_get_size (buffer), ==, rowstride * TILE_SIZE);
 



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