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.
This commit is contained in:
Neil Roberts 2011-05-16 16:07:19 +01:00
parent 7d233241f1
commit 86dce2fd98

View File

@ -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);