mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 03:50:47 -05:00
pixel-array: Remove flags member and flag macros
There are no flags associated with pixel-arrays so we don't need the flags member or flag macros.
This commit is contained in:
parent
1c8b355bbb
commit
902c18ad87
@ -37,32 +37,14 @@ G_BEGIN_DECLS
|
|||||||
|
|
||||||
#define COGL_PIXEL_ARRAY(array) ((CoglPixelArray *)(array))
|
#define COGL_PIXEL_ARRAY(array) ((CoglPixelArray *)(array))
|
||||||
|
|
||||||
#define COGL_PIXEL_ARRAY_SET_FLAG(array, flag) \
|
|
||||||
((array)->flags |= (COGL_PIXEL_ARRAY_FLAG_ ## flag))
|
|
||||||
|
|
||||||
#define COGL_PIXEL_ARRAY_CLEAR_FLAG(array, flag) \
|
|
||||||
((array)->flags &= ~(COGL_PIXEL_ARRAY_FLAG_ ## flag))
|
|
||||||
|
|
||||||
#define COGL_PIXEL_ARRAY_FLAG_IS_SET(array, flag) \
|
|
||||||
((array)->flags & (COGL_PIXEL_ARRAY_FLAG_ ## flag))
|
|
||||||
|
|
||||||
typedef enum _CoglPixelArrayFlags
|
|
||||||
{
|
|
||||||
COGL_PIXEL_ARRAY_FLAG_NONE = 0,
|
|
||||||
COGL_PIXEL_ARRAY_FLAG_STORE_CREATED = 1 << 0,
|
|
||||||
} CoglPixelArrayFlags;
|
|
||||||
|
|
||||||
struct _CoglPixelArray
|
struct _CoglPixelArray
|
||||||
{
|
{
|
||||||
CoglBuffer _parent;
|
CoglBuffer _parent;
|
||||||
|
|
||||||
CoglPixelArrayFlags flags;
|
|
||||||
|
|
||||||
CoglPixelFormat format;
|
CoglPixelFormat format;
|
||||||
unsigned int width;
|
unsigned int width;
|
||||||
unsigned int height;
|
unsigned int height;
|
||||||
unsigned int stride;
|
unsigned int stride;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GQuark
|
GQuark
|
||||||
|
@ -109,8 +109,6 @@ _cogl_pixel_array_new (unsigned int size)
|
|||||||
COGL_BUFFER_USAGE_HINT_TEXTURE,
|
COGL_BUFFER_USAGE_HINT_TEXTURE,
|
||||||
COGL_BUFFER_UPDATE_HINT_STATIC);
|
COGL_BUFFER_UPDATE_HINT_STATIC);
|
||||||
|
|
||||||
pixel_array->flags = COGL_PIXEL_ARRAY_FLAG_NONE;
|
|
||||||
|
|
||||||
/* return COGL_INVALID_HANDLE; */
|
/* return COGL_INVALID_HANDLE; */
|
||||||
return _cogl_pixel_array_object_new (pixel_array);
|
return _cogl_pixel_array_object_new (pixel_array);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user