cogl: Drop CoglHandleObject and CoglHandleClass

They're just typedefs to CoglObject and CoglObjectClass, respectively,
and the latter is unused already. The former is used in a couple of
deprecated headers, which can easily be changed.

Change all CoglHandleObject instances to CoglObject, and drop the types

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2355>
This commit is contained in:
Georges Basile Stavracas Neto 2022-03-31 14:47:57 -03:00
parent 631056bf49
commit 62330f273d
3 changed files with 2 additions and 6 deletions

View File

@ -38,10 +38,6 @@
#include "cogl-object.h"
#include "cogl-debug.h"
/* For compatibility until all components have been converted */
typedef struct _CoglObjectClass CoglHandleClass;
typedef struct _CoglObject CoglHandleObject;
/* XXX: sadly we didn't fully consider when we copied the cairo API
* for _set_user_data that the callback doesn't get a pointer to the
* instance which is desired in most cases. This means you tend to end

View File

@ -38,7 +38,7 @@ typedef struct _CoglProgram CoglProgram;
struct _CoglProgram
{
CoglHandleObject _parent;
CoglObject _parent;
GSList *attached_shaders;

View File

@ -40,7 +40,7 @@ typedef struct _CoglShader CoglShader;
struct _CoglShader
{
CoglHandleObject _parent;
CoglObject _parent;
GLuint gl_handle;
CoglPipeline *compilation_pipeline;
CoglShaderType type;