mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 08:49:30 +00:00
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:
@ -65,12 +65,12 @@ create_map_tile (TestTile *tile)
|
|||||||
unsigned int stride = 0;
|
unsigned int stride = 0;
|
||||||
guint8 *line;
|
guint8 *line;
|
||||||
|
|
||||||
buffer = cogl_pixel_array_new_with_size (TILE_SIZE,
|
buffer = cogl_pixel_buffer_new_with_size (TILE_SIZE,
|
||||||
TILE_SIZE,
|
TILE_SIZE,
|
||||||
COGL_PIXEL_FORMAT_RGBA_8888,
|
COGL_PIXEL_FORMAT_RGBA_8888,
|
||||||
&stride);
|
&stride);
|
||||||
|
|
||||||
g_assert (cogl_is_pixel_array (buffer));
|
g_assert (cogl_is_pixel_buffer (buffer));
|
||||||
g_assert (cogl_is_buffer (buffer));
|
g_assert (cogl_is_buffer (buffer));
|
||||||
|
|
||||||
cogl_buffer_set_update_hint (buffer, COGL_BUFFER_UPDATE_HINT_DYNAMIC);
|
cogl_buffer_set_update_hint (buffer, COGL_BUFFER_UPDATE_HINT_DYNAMIC);
|
||||||
@ -154,12 +154,12 @@ create_set_data_tile (TestTile *tile)
|
|||||||
guchar *data;
|
guchar *data;
|
||||||
guint i;
|
guint i;
|
||||||
|
|
||||||
buffer = cogl_pixel_array_new_with_size (TILE_SIZE,
|
buffer = cogl_pixel_buffer_new_with_size (TILE_SIZE,
|
||||||
TILE_SIZE,
|
TILE_SIZE,
|
||||||
COGL_PIXEL_FORMAT_RGBA_8888,
|
COGL_PIXEL_FORMAT_RGBA_8888,
|
||||||
&rowstride);
|
&rowstride);
|
||||||
|
|
||||||
g_assert (cogl_is_pixel_array (buffer));
|
g_assert (cogl_is_pixel_buffer (buffer));
|
||||||
g_assert (cogl_is_buffer (buffer));
|
g_assert (cogl_is_buffer (buffer));
|
||||||
g_assert_cmpint (cogl_buffer_get_size (buffer), ==, rowstride * TILE_SIZE);
|
g_assert_cmpint (cogl_buffer_get_size (buffer), ==, rowstride * TILE_SIZE);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user