mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
cogl: Remove unused fields from CoglContext
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1191
This commit is contained in:
parent
0d0834f87c
commit
23d0bdd46d
@ -124,11 +124,6 @@ struct _CoglContext
|
|||||||
|
|
||||||
CoglMatrixEntry identity_entry;
|
CoglMatrixEntry identity_entry;
|
||||||
|
|
||||||
/* A cache of the last (immutable) matrix stack entries that were
|
|
||||||
* flushed to the GL matrix builtins */
|
|
||||||
CoglMatrixEntryCache builtin_flushed_projection;
|
|
||||||
CoglMatrixEntryCache builtin_flushed_modelview;
|
|
||||||
|
|
||||||
GArray *texture_units;
|
GArray *texture_units;
|
||||||
int active_texture_unit;
|
int active_texture_unit;
|
||||||
|
|
||||||
@ -152,8 +147,6 @@ struct _CoglContext
|
|||||||
GArray *journal_flush_attributes_array;
|
GArray *journal_flush_attributes_array;
|
||||||
GArray *journal_clip_bounds;
|
GArray *journal_clip_bounds;
|
||||||
|
|
||||||
GArray *polygon_vertices;
|
|
||||||
|
|
||||||
/* Some simple caching, to minimize state changes... */
|
/* Some simple caching, to minimize state changes... */
|
||||||
CoglPipeline *current_pipeline;
|
CoglPipeline *current_pipeline;
|
||||||
unsigned long current_pipeline_changes_since_flush;
|
unsigned long current_pipeline_changes_since_flush;
|
||||||
@ -197,17 +190,10 @@ struct _CoglContext
|
|||||||
/* Primitives */
|
/* Primitives */
|
||||||
CoglPipeline *stencil_pipeline;
|
CoglPipeline *stencil_pipeline;
|
||||||
|
|
||||||
/* Pre-generated VBOs containing indices to generate GL_TRIANGLES
|
|
||||||
out of a vertex array of quads */
|
|
||||||
CoglIndices *quad_buffer_indices_byte;
|
|
||||||
unsigned int quad_buffer_indices_len;
|
|
||||||
CoglIndices *quad_buffer_indices;
|
|
||||||
|
|
||||||
CoglIndices *rectangle_byte_indices;
|
CoglIndices *rectangle_byte_indices;
|
||||||
CoglIndices *rectangle_short_indices;
|
CoglIndices *rectangle_short_indices;
|
||||||
int rectangle_short_indices_len;
|
int rectangle_short_indices_len;
|
||||||
|
|
||||||
CoglPipeline *texture_download_pipeline;
|
|
||||||
CoglPipeline *blit_texture_pipeline;
|
CoglPipeline *blit_texture_pipeline;
|
||||||
|
|
||||||
GSList *atlases;
|
GSList *atlases;
|
||||||
|
@ -276,8 +276,6 @@ cogl_context_new (CoglDisplay *display,
|
|||||||
g_array_new (TRUE, FALSE, sizeof (CoglAttribute *));
|
g_array_new (TRUE, FALSE, sizeof (CoglAttribute *));
|
||||||
context->journal_clip_bounds = NULL;
|
context->journal_clip_bounds = NULL;
|
||||||
|
|
||||||
context->polygon_vertices = g_array_new (FALSE, FALSE, sizeof (float));
|
|
||||||
|
|
||||||
context->current_pipeline = NULL;
|
context->current_pipeline = NULL;
|
||||||
context->current_pipeline_changes_since_flush = 0;
|
context->current_pipeline_changes_since_flush = 0;
|
||||||
context->current_pipeline_with_color_attrib = FALSE;
|
context->current_pipeline_with_color_attrib = FALSE;
|
||||||
@ -310,22 +308,15 @@ cogl_context_new (CoglDisplay *display,
|
|||||||
|
|
||||||
context->stencil_pipeline = cogl_pipeline_new (context);
|
context->stencil_pipeline = cogl_pipeline_new (context);
|
||||||
|
|
||||||
context->quad_buffer_indices_byte = NULL;
|
|
||||||
context->quad_buffer_indices = NULL;
|
|
||||||
context->quad_buffer_indices_len = 0;
|
|
||||||
|
|
||||||
context->rectangle_byte_indices = NULL;
|
context->rectangle_byte_indices = NULL;
|
||||||
context->rectangle_short_indices = NULL;
|
context->rectangle_short_indices = NULL;
|
||||||
context->rectangle_short_indices_len = 0;
|
context->rectangle_short_indices_len = 0;
|
||||||
|
|
||||||
context->texture_download_pipeline = NULL;
|
|
||||||
context->blit_texture_pipeline = NULL;
|
context->blit_texture_pipeline = NULL;
|
||||||
|
|
||||||
context->current_modelview_entry = NULL;
|
context->current_modelview_entry = NULL;
|
||||||
context->current_projection_entry = NULL;
|
context->current_projection_entry = NULL;
|
||||||
_cogl_matrix_entry_identity_init (&context->identity_entry);
|
_cogl_matrix_entry_identity_init (&context->identity_entry);
|
||||||
_cogl_matrix_entry_cache_init (&context->builtin_flushed_projection);
|
|
||||||
_cogl_matrix_entry_cache_init (&context->builtin_flushed_modelview);
|
|
||||||
|
|
||||||
/* Create default textures used for fall backs */
|
/* Create default textures used for fall backs */
|
||||||
context->default_gl_texture_2d_tex =
|
context->default_gl_texture_2d_tex =
|
||||||
@ -372,14 +363,6 @@ _cogl_context_free (CoglContext *context)
|
|||||||
if (context->journal_clip_bounds)
|
if (context->journal_clip_bounds)
|
||||||
g_array_free (context->journal_clip_bounds, TRUE);
|
g_array_free (context->journal_clip_bounds, TRUE);
|
||||||
|
|
||||||
if (context->polygon_vertices)
|
|
||||||
g_array_free (context->polygon_vertices, TRUE);
|
|
||||||
|
|
||||||
if (context->quad_buffer_indices_byte)
|
|
||||||
cogl_object_unref (context->quad_buffer_indices_byte);
|
|
||||||
if (context->quad_buffer_indices)
|
|
||||||
cogl_object_unref (context->quad_buffer_indices);
|
|
||||||
|
|
||||||
if (context->rectangle_byte_indices)
|
if (context->rectangle_byte_indices)
|
||||||
cogl_object_unref (context->rectangle_byte_indices);
|
cogl_object_unref (context->rectangle_byte_indices);
|
||||||
if (context->rectangle_short_indices)
|
if (context->rectangle_short_indices)
|
||||||
@ -409,8 +392,6 @@ _cogl_context_free (CoglContext *context)
|
|||||||
cogl_matrix_entry_unref (context->current_modelview_entry);
|
cogl_matrix_entry_unref (context->current_modelview_entry);
|
||||||
if (context->current_projection_entry)
|
if (context->current_projection_entry)
|
||||||
cogl_matrix_entry_unref (context->current_projection_entry);
|
cogl_matrix_entry_unref (context->current_projection_entry);
|
||||||
_cogl_matrix_entry_cache_destroy (&context->builtin_flushed_projection);
|
|
||||||
_cogl_matrix_entry_cache_destroy (&context->builtin_flushed_modelview);
|
|
||||||
|
|
||||||
_cogl_pipeline_cache_free (context->pipeline_cache);
|
_cogl_pipeline_cache_free (context->pipeline_cache);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user