[gtk/wip/chergert/glproto: 82/94] remove helpers
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 82/94] remove helpers
- Date: Fri, 1 Jan 2021 21:30:51 +0000 (UTC)
commit 6fb25f0c7321a4c7d66f8680672e7ea3f4e08175
Author: Christian Hergert <chergert redhat com>
Date: Wed Dec 30 11:01:38 2020 -0800
remove helpers
now that this is available from the struct directly
gsk/next/gskglprogram.c | 16 ----------------
gsk/next/gskglprogramprivate.h | 28 +++++++++++++---------------
2 files changed, 13 insertions(+), 31 deletions(-)
---
diff --git a/gsk/next/gskglprogram.c b/gsk/next/gskglprogram.c
index 823164274b..40a9fdf39b 100644
--- a/gsk/next/gskglprogram.c
+++ b/gsk/next/gskglprogram.c
@@ -44,22 +44,6 @@ gsk_gl_program_new (GskGLCommandQueue *command_queue,
return self;
}
-int
-gsk_gl_program_get_id (GskGLProgram *self)
-{
- g_return_val_if_fail (GSK_IS_GL_PROGRAM (self), -1);
-
- return self->id;
-}
-
-const char *
-gsk_gl_program_get_name (GskGLProgram *self)
-{
- g_return_val_if_fail (GSK_IS_GL_PROGRAM (self), NULL);
-
- return self->name;
-}
-
static void
gsk_gl_program_finalize (GObject *object)
{
diff --git a/gsk/next/gskglprogramprivate.h b/gsk/next/gskglprogramprivate.h
index 6061ccdbe8..c4e3a9cff8 100644
--- a/gsk/next/gskglprogramprivate.h
+++ b/gsk/next/gskglprogramprivate.h
@@ -44,21 +44,19 @@ struct _GskGLProgram
int clip_rect_location;
};
-GskGLProgram *gsk_gl_program_new (GskGLCommandQueue *command_queue,
- const char *name,
- int program_id);
-int gsk_gl_program_get_id (GskGLProgram *self);
-const char *gsk_gl_program_get_name (GskGLProgram *self);
-gboolean gsk_gl_program_add_uniform (GskGLProgram *self,
- const char *name,
- guint key);
-void gsk_gl_program_delete (GskGLProgram *self);
-void gsk_gl_program_begin_draw (GskGLProgram *self,
- const graphene_rect_t *viewport,
- const graphene_matrix_t *projection,
- const graphene_matrix_t *modelview,
- const GskRoundedRect *clip);
-void gsk_gl_program_end_draw (GskGLProgram *self);
+GskGLProgram *gsk_gl_program_new (GskGLCommandQueue *command_queue,
+ const char *name,
+ int program_id);
+gboolean gsk_gl_program_add_uniform (GskGLProgram *self,
+ const char *name,
+ guint key);
+void gsk_gl_program_delete (GskGLProgram *self);
+void gsk_gl_program_begin_draw (GskGLProgram *self,
+ const graphene_rect_t *viewport,
+ const graphene_matrix_t *projection,
+ const graphene_matrix_t *modelview,
+ const GskRoundedRect *clip);
+void gsk_gl_program_end_draw (GskGLProgram *self);
static inline int
gsk_gl_program_get_uniform_location (GskGLProgram *self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]