g_assert (!self->key_to_texture_id|| g_hash_table_size (self->key_to_texture_id) == 0);
g_clear_object (&self->glyphs_library);
- g_clear_object (&self->icons);
- g_clear_object (&self->shadows);
+ g_clear_object (&self->icons_library);
+ g_clear_object (&self->shadows_library);
g_clear_pointer (&self->autorelease_framebuffers, g_array_unref);
g_clear_pointer (&self->key_to_texture_id, g_hash_table_unref);
}
self->glyphs_library = gsk_gl_glyph_library_new (self);
- self->icons = gsk_gl_icon_library_new (self);
- self->shadows = gsk_gl_shadow_library_new (self);
+ self->icons_library = gsk_gl_icon_library_new (self);
+ self->shadows_library = gsk_gl_shadow_library_new (self);
gdk_profiler_end_mark (before, "create GskGLDriver", NULL);
gsk_gl_command_queue_begin_frame (self->command_queue);
/* Mark unused pixel regions of the atlases */
- gsk_gl_texture_library_begin_frame (GSK_GL_TEXTURE_LIBRARY (self->icons),
+ gsk_gl_texture_library_begin_frame (GSK_GL_TEXTURE_LIBRARY (self->icons_library),
self->current_frame_id);
gsk_gl_texture_library_begin_frame (GSK_GL_TEXTURE_LIBRARY (self->glyphs_library),
self->current_frame_id);
/* Cleanup old shadows */
- gsk_gl_shadow_library_begin_frame (self->shadows);
+ gsk_gl_shadow_library_begin_frame (self->shadows_library);
/* Remove all textures that are from a previous frame or are no
* longer used by linked GdkTexture. We do this at the beginning
g_ptr_array_extend(dst, GSK_GL_TEXTURE_LIBRARY(library)->atlases, NULL, NULL)
atlases = g_ptr_array_new ();
copy_atlases (atlases, self->glyphs_library);
- copy_atlases (atlases, self->icons);
+ copy_atlases (atlases, self->icons_library);
#undef copy_atlases
for (guint i = 0; i < atlases->len; i++)
scaled_outline.corner[i].height *= scale_y;
}
- cached_tid = gsk_gl_shadow_library_lookup (job->driver->shadows, &scaled_outline, blur_radius);
+ cached_tid = gsk_gl_shadow_library_lookup (job->driver->shadows_library,
+ &scaled_outline,
+ blur_radius);
if (cached_tid == 0)
{
blur_radius * scale_x,
blur_radius * scale_y);
- gsk_gl_shadow_library_insert (job->driver->shadows,
+ gsk_gl_shadow_library_insert (job->driver->shadows_library,
&scaled_outline,
blur_radius,
blurred_texture_id);
GdkTexture *texture,
GskGLRenderOffscreen *offscreen)
{
- if (gsk_gl_texture_library_can_cache ((GskGLTextureLibrary *)job->driver->icons,
+ if (gsk_gl_texture_library_can_cache ((GskGLTextureLibrary *)job->driver->icons_library,
texture->width,
texture->height) &&
!GDK_IS_GL_TEXTURE (texture))
{
const GskGLIconData *icon_data;
- gsk_gl_icon_library_lookup_or_add (job->driver->icons, texture, &icon_data);
+ gsk_gl_icon_library_lookup_or_add (job->driver->icons_library, texture, &icon_data);
offscreen->texture_id = GSK_GL_TEXTURE_ATLAS_ENTRY_TEXTURE (icon_data);
memcpy (&offscreen->area, &icon_data->entry.area, sizeof offscreen->area);
}