2017-11-18 13:30:57 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include "gskglglyphcacheprivate.h"
|
|
|
|
#include "gskgldriverprivate.h"
|
|
|
|
#include "gskdebugprivate.h"
|
|
|
|
#include "gskprivate.h"
|
|
|
|
|
2019-04-24 11:27:43 +00:00
|
|
|
#include "gdk/gdkglcontextprivate.h"
|
|
|
|
|
2017-11-18 13:30:57 +00:00
|
|
|
#include <graphene.h>
|
2018-03-28 03:23:43 +00:00
|
|
|
#include <cairo.h>
|
2017-11-18 13:30:57 +00:00
|
|
|
#include <epoxy/gl.h>
|
|
|
|
|
|
|
|
/* Parameters for our cache eviction strategy.
|
|
|
|
*
|
|
|
|
* Each cached glyph has an age that gets reset every time a cached glyph gets used.
|
|
|
|
* Glyphs that have not been used for the MAX_AGE frames are considered old. We keep
|
|
|
|
* count of the pixels of each atlas that are taken up by old glyphs. We check the
|
|
|
|
* fraction of old pixels every CHECK_INTERVAL frames, and if it is above MAX_OLD, then
|
|
|
|
* we drop the atlas an all the glyphs contained in it from the cache.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define MAX_AGE 60
|
|
|
|
#define CHECK_INTERVAL 10
|
|
|
|
#define MAX_OLD 0.333
|
|
|
|
|
|
|
|
#define ATLAS_SIZE 512
|
|
|
|
|
|
|
|
static guint glyph_cache_hash (gconstpointer v);
|
|
|
|
static gboolean glyph_cache_equal (gconstpointer v1,
|
|
|
|
gconstpointer v2);
|
|
|
|
static void glyph_cache_key_free (gpointer v);
|
|
|
|
static void glyph_cache_value_free (gpointer v);
|
|
|
|
|
|
|
|
static GskGLGlyphAtlas *
|
2019-06-02 19:42:14 +00:00
|
|
|
create_atlas (GskGLGlyphCache *cache,
|
|
|
|
int width,
|
|
|
|
int height)
|
2017-11-18 13:30:57 +00:00
|
|
|
{
|
|
|
|
GskGLGlyphAtlas *atlas;
|
|
|
|
|
|
|
|
atlas = g_new0 (GskGLGlyphAtlas, 1);
|
2019-06-02 19:42:14 +00:00
|
|
|
atlas->width = MAX (width, ATLAS_SIZE);
|
|
|
|
atlas->height = MAX (height, ATLAS_SIZE);
|
2017-11-18 13:30:57 +00:00
|
|
|
atlas->y0 = 1;
|
|
|
|
atlas->y = 1;
|
|
|
|
atlas->x = 1;
|
|
|
|
atlas->image = NULL;
|
|
|
|
|
|
|
|
return atlas;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
free_atlas (gpointer v)
|
|
|
|
{
|
|
|
|
GskGLGlyphAtlas *atlas = v;
|
|
|
|
|
|
|
|
if (atlas->image)
|
|
|
|
{
|
|
|
|
g_assert (atlas->image->texture_id == 0);
|
|
|
|
g_free (atlas->image);
|
|
|
|
}
|
2019-01-06 14:35:54 +00:00
|
|
|
|
2017-11-18 13:30:57 +00:00
|
|
|
g_free (atlas);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gsk_gl_glyph_cache_init (GskGLGlyphCache *self,
|
2018-01-14 14:52:52 +00:00
|
|
|
GskRenderer *renderer,
|
2017-11-18 13:30:57 +00:00
|
|
|
GskGLDriver *gl_driver)
|
|
|
|
{
|
|
|
|
self->hash_table = g_hash_table_new_full (glyph_cache_hash, glyph_cache_equal,
|
|
|
|
glyph_cache_key_free, glyph_cache_value_free);
|
|
|
|
self->atlases = g_ptr_array_new_with_free_func (free_atlas);
|
|
|
|
|
2018-01-14 14:52:52 +00:00
|
|
|
self->renderer = renderer;
|
2017-11-18 13:30:57 +00:00
|
|
|
self->gl_driver = gl_driver;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gsk_gl_glyph_cache_free (GskGLGlyphCache *self)
|
|
|
|
{
|
|
|
|
guint i;
|
|
|
|
|
|
|
|
for (i = 0; i < self->atlases->len; i ++)
|
|
|
|
{
|
|
|
|
GskGLGlyphAtlas *atlas = g_ptr_array_index (self->atlases, i);
|
|
|
|
|
|
|
|
if (atlas->image)
|
|
|
|
{
|
|
|
|
gsk_gl_image_destroy (atlas->image, self->gl_driver);
|
|
|
|
atlas->image->texture_id = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
g_ptr_array_unref (self->atlases);
|
|
|
|
g_hash_table_unref (self->hash_table);
|
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
|
|
|
glyph_cache_equal (gconstpointer v1, gconstpointer v2)
|
|
|
|
{
|
|
|
|
const GlyphCacheKey *key1 = v1;
|
|
|
|
const GlyphCacheKey *key2 = v2;
|
|
|
|
|
|
|
|
return key1->font == key2->font &&
|
|
|
|
key1->glyph == key2->glyph &&
|
|
|
|
key1->scale == key2->scale;
|
|
|
|
}
|
|
|
|
|
|
|
|
static guint
|
|
|
|
glyph_cache_hash (gconstpointer v)
|
|
|
|
{
|
|
|
|
const GlyphCacheKey *key = v;
|
|
|
|
|
|
|
|
return GPOINTER_TO_UINT (key->font) ^ key->glyph ^ key->scale;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
glyph_cache_key_free (gpointer v)
|
|
|
|
{
|
|
|
|
GlyphCacheKey *f = v;
|
|
|
|
|
|
|
|
g_object_unref (f->font);
|
|
|
|
g_free (f);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
glyph_cache_value_free (gpointer v)
|
|
|
|
{
|
|
|
|
g_free (v);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
add_to_cache (GskGLGlyphCache *cache,
|
2019-01-06 14:35:54 +00:00
|
|
|
GlyphCacheKey *key,
|
2017-11-18 13:30:57 +00:00
|
|
|
GskGLCachedGlyph *value)
|
|
|
|
{
|
|
|
|
GskGLGlyphAtlas *atlas;
|
|
|
|
int i;
|
|
|
|
int width = value->draw_width * key->scale / 1024;
|
|
|
|
int height = value->draw_height * key->scale / 1024;
|
|
|
|
|
|
|
|
for (i = 0; i < cache->atlases->len; i++)
|
|
|
|
{
|
|
|
|
int x, y, y0;
|
|
|
|
|
|
|
|
atlas = g_ptr_array_index (cache->atlases, i);
|
|
|
|
x = atlas->x;
|
|
|
|
y = atlas->y;
|
|
|
|
y0 = atlas->y0;
|
|
|
|
|
|
|
|
if (atlas->x + width + 1 >= atlas->width)
|
|
|
|
{
|
|
|
|
/* start a new row */
|
|
|
|
y0 = y + 1;
|
|
|
|
x = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (y0 + height + 1 >= atlas->height)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
atlas->y0 = y0;
|
|
|
|
atlas->x = x;
|
|
|
|
atlas->y = y;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (i == cache->atlases->len)
|
|
|
|
{
|
2019-06-02 19:42:14 +00:00
|
|
|
atlas = create_atlas (cache, width + 2, height + 2);
|
2017-11-18 13:30:57 +00:00
|
|
|
g_ptr_array_add (cache->atlases, atlas);
|
|
|
|
}
|
|
|
|
|
|
|
|
value->tx = (float)atlas->x / atlas->width;
|
|
|
|
value->ty = (float)atlas->y0 / atlas->height;
|
|
|
|
value->tw = (float)width / atlas->width;
|
|
|
|
value->th = (float)height / atlas->height;
|
|
|
|
|
|
|
|
value->atlas = atlas;
|
|
|
|
|
2019-01-06 14:35:54 +00:00
|
|
|
atlas->pending_glyph.key = key;
|
|
|
|
atlas->pending_glyph.value = value;
|
2017-11-18 13:30:57 +00:00
|
|
|
|
|
|
|
atlas->x = atlas->x + width + 1;
|
|
|
|
atlas->y = MAX (atlas->y, atlas->y0 + height + 1);
|
|
|
|
|
|
|
|
#ifdef G_ENABLE_DEBUG
|
2018-01-14 14:52:52 +00:00
|
|
|
if (GSK_RENDERER_DEBUG_CHECK (cache->renderer, GLYPH_CACHE))
|
2017-11-18 13:30:57 +00:00
|
|
|
{
|
|
|
|
g_print ("Glyph cache:\n");
|
|
|
|
for (i = 0; i < cache->atlases->len; i++)
|
|
|
|
{
|
|
|
|
atlas = g_ptr_array_index (cache->atlases, i);
|
2019-01-06 14:35:54 +00:00
|
|
|
g_print ("\tGskGLGlyphAtlas %d (%dx%d): %.2g%% old pixels, filled to %d, %d / %d\n",
|
2017-11-18 13:30:57 +00:00
|
|
|
i, atlas->width, atlas->height,
|
|
|
|
100.0 * (double)atlas->old_pixels / (double)(atlas->width * atlas->height),
|
|
|
|
atlas->x, atlas->y0, atlas->y);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2019-05-20 13:12:15 +00:00
|
|
|
static gboolean
|
2017-11-18 13:30:57 +00:00
|
|
|
render_glyph (const GskGLGlyphAtlas *atlas,
|
|
|
|
DirtyGlyph *glyph,
|
|
|
|
GskImageRegion *region)
|
|
|
|
{
|
|
|
|
GlyphCacheKey *key = glyph->key;
|
|
|
|
GskGLCachedGlyph *value = glyph->value;
|
|
|
|
cairo_surface_t *surface;
|
|
|
|
cairo_t *cr;
|
|
|
|
cairo_scaled_font_t *scaled_font;
|
2018-01-06 12:02:31 +00:00
|
|
|
PangoGlyphString glyph_string;
|
|
|
|
PangoGlyphInfo glyph_info;
|
2019-05-20 13:12:15 +00:00
|
|
|
int surface_width, surface_height;
|
2017-11-18 13:30:57 +00:00
|
|
|
|
|
|
|
scaled_font = pango_cairo_font_get_scaled_font ((PangoCairoFont *)key->font);
|
|
|
|
if (G_UNLIKELY (!scaled_font || cairo_scaled_font_status (scaled_font) != CAIRO_STATUS_SUCCESS))
|
2019-05-20 13:12:15 +00:00
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
surface_width = value->draw_width * key->scale / 1024;
|
|
|
|
surface_height = value->draw_height * key->scale / 1024;
|
2017-11-18 13:30:57 +00:00
|
|
|
|
2019-05-20 13:12:15 +00:00
|
|
|
/* TODO: Give glyphs that large their own texture in the proper size. Don't
|
|
|
|
* put them in the atlas at all. */
|
2019-06-02 19:42:14 +00:00
|
|
|
if (surface_width > atlas->width || surface_height > atlas->height)
|
2019-05-20 13:12:15 +00:00
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, surface_width, surface_height);
|
2017-11-18 13:30:57 +00:00
|
|
|
cairo_surface_set_device_scale (surface, key->scale / 1024.0, key->scale / 1024.0);
|
|
|
|
|
|
|
|
cr = cairo_create (surface);
|
|
|
|
|
|
|
|
cairo_set_scaled_font (cr, scaled_font);
|
|
|
|
cairo_set_source_rgba (cr, 1, 1, 1, 1);
|
|
|
|
|
2018-01-06 12:02:31 +00:00
|
|
|
glyph_info.glyph = key->glyph;
|
|
|
|
glyph_info.geometry.width = value->draw_width * 1024;
|
|
|
|
if (key->glyph & PANGO_GLYPH_UNKNOWN_FLAG)
|
|
|
|
glyph_info.geometry.x_offset = 0;
|
|
|
|
else
|
|
|
|
glyph_info.geometry.x_offset = - value->draw_x * 1024;
|
|
|
|
glyph_info.geometry.y_offset = - value->draw_y * 1024;
|
2017-11-18 13:30:57 +00:00
|
|
|
|
2018-01-06 12:02:31 +00:00
|
|
|
glyph_string.num_glyphs = 1;
|
|
|
|
glyph_string.glyphs = &glyph_info;
|
2017-11-18 13:30:57 +00:00
|
|
|
|
2018-01-06 12:02:31 +00:00
|
|
|
pango_cairo_show_glyph_string (cr, key->font, &glyph_string);
|
2017-11-18 13:30:57 +00:00
|
|
|
cairo_destroy (cr);
|
|
|
|
|
2019-02-08 10:01:39 +00:00
|
|
|
cairo_surface_flush (surface);
|
2017-11-18 13:30:57 +00:00
|
|
|
|
|
|
|
region->width = cairo_image_surface_get_width (surface);
|
|
|
|
region->height = cairo_image_surface_get_height (surface);
|
|
|
|
region->stride = cairo_image_surface_get_stride (surface);
|
2019-02-08 10:01:39 +00:00
|
|
|
region->data = g_memdup (cairo_image_surface_get_data (surface),
|
|
|
|
region->stride * region->height * sizeof (guchar));
|
2017-11-18 13:30:57 +00:00
|
|
|
region->x = (gsize)(value->tx * atlas->width);
|
|
|
|
region->y = (gsize)(value->ty * atlas->height);
|
2019-02-08 10:01:39 +00:00
|
|
|
|
|
|
|
cairo_surface_destroy (surface);
|
2019-05-20 13:12:15 +00:00
|
|
|
return TRUE;
|
2017-11-18 13:30:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2019-01-06 14:35:54 +00:00
|
|
|
upload_dirty_glyph (GskGLGlyphCache *self,
|
|
|
|
GskGLGlyphAtlas *atlas)
|
2017-11-18 13:30:57 +00:00
|
|
|
{
|
2019-01-06 14:35:54 +00:00
|
|
|
GskImageRegion region;
|
2017-11-18 13:30:57 +00:00
|
|
|
|
2019-01-06 14:35:54 +00:00
|
|
|
g_assert (atlas->pending_glyph.key != NULL);
|
2017-11-18 13:30:57 +00:00
|
|
|
|
2019-04-24 11:28:11 +00:00
|
|
|
gdk_gl_context_push_debug_group_printf (gsk_gl_driver_get_gl_context (self->gl_driver),
|
|
|
|
"Uploading glyph %d", atlas->pending_glyph.key->glyph);
|
|
|
|
|
2019-05-20 13:12:15 +00:00
|
|
|
if (render_glyph (atlas, &atlas->pending_glyph, ®ion))
|
|
|
|
{
|
2017-11-18 13:30:57 +00:00
|
|
|
|
2019-05-20 13:12:15 +00:00
|
|
|
gsk_gl_image_upload_regions (atlas->image, self->gl_driver, 1, ®ion);
|
2019-04-24 11:28:11 +00:00
|
|
|
|
2019-05-20 13:12:15 +00:00
|
|
|
g_free (region.data);
|
|
|
|
}
|
2019-02-08 10:01:39 +00:00
|
|
|
|
2019-05-20 13:12:15 +00:00
|
|
|
gdk_gl_context_pop_debug_group (gsk_gl_driver_get_gl_context (self->gl_driver));
|
2019-01-06 14:35:54 +00:00
|
|
|
atlas->pending_glyph.key = NULL;
|
|
|
|
atlas->pending_glyph.value = NULL;
|
2017-11-18 13:30:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const GskGLCachedGlyph *
|
|
|
|
gsk_gl_glyph_cache_lookup (GskGLGlyphCache *cache,
|
|
|
|
gboolean create,
|
|
|
|
PangoFont *font,
|
|
|
|
PangoGlyph glyph,
|
|
|
|
float scale)
|
|
|
|
{
|
|
|
|
GskGLCachedGlyph *value;
|
|
|
|
|
2018-03-02 16:22:46 +00:00
|
|
|
value = g_hash_table_lookup (cache->hash_table,
|
|
|
|
&(GlyphCacheKey) {
|
|
|
|
.font = font,
|
|
|
|
.glyph = glyph,
|
|
|
|
.scale = (guint)(scale * 1024)
|
|
|
|
});
|
2017-11-18 13:30:57 +00:00
|
|
|
|
|
|
|
if (value)
|
|
|
|
{
|
2019-02-10 09:07:24 +00:00
|
|
|
const guint age = cache->timestamp - value->timestamp;
|
|
|
|
|
|
|
|
if (MAX_AGE <= age && age < MAX_AGE + CHECK_INTERVAL)
|
2017-11-18 13:30:57 +00:00
|
|
|
{
|
|
|
|
GskGLGlyphAtlas *atlas = value->atlas;
|
|
|
|
|
|
|
|
if (atlas)
|
|
|
|
atlas->old_pixels -= value->draw_width * value->draw_height;
|
|
|
|
|
|
|
|
value->timestamp = cache->timestamp;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (create && value == NULL)
|
|
|
|
{
|
|
|
|
GlyphCacheKey *key;
|
|
|
|
PangoRectangle ink_rect;
|
|
|
|
|
|
|
|
key = g_new0 (GlyphCacheKey, 1);
|
|
|
|
value = g_new0 (GskGLCachedGlyph, 1);
|
|
|
|
|
|
|
|
pango_font_get_glyph_extents (font, glyph, &ink_rect, NULL);
|
|
|
|
pango_extents_to_pixels (&ink_rect, NULL);
|
|
|
|
|
|
|
|
value->draw_x = ink_rect.x;
|
|
|
|
value->draw_y = ink_rect.y;
|
|
|
|
value->draw_width = ink_rect.width;
|
|
|
|
value->draw_height = ink_rect.height;
|
|
|
|
value->timestamp = cache->timestamp;
|
|
|
|
value->atlas = NULL; /* For now */
|
2019-01-10 16:14:48 +00:00
|
|
|
value->scale = (guint)(scale * 1024);
|
2017-11-18 13:30:57 +00:00
|
|
|
|
|
|
|
key->font = g_object_ref (font);
|
|
|
|
key->glyph = glyph;
|
|
|
|
key->scale = (guint)(scale * 1024);
|
|
|
|
|
2019-01-10 16:14:48 +00:00
|
|
|
if (ink_rect.width > 0 && ink_rect.height > 0 && key->scale > 0)
|
2017-11-18 13:30:57 +00:00
|
|
|
add_to_cache (cache, key, value);
|
|
|
|
|
|
|
|
g_hash_table_insert (cache->hash_table, key, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
GskGLImage *
|
2019-01-06 14:35:54 +00:00
|
|
|
gsk_gl_glyph_cache_get_glyph_image (GskGLGlyphCache *self,
|
2017-11-18 13:30:57 +00:00
|
|
|
const GskGLCachedGlyph *glyph)
|
|
|
|
{
|
|
|
|
GskGLGlyphAtlas *atlas = glyph->atlas;
|
|
|
|
|
|
|
|
g_assert (atlas != NULL);
|
|
|
|
|
|
|
|
if (atlas->image == NULL)
|
|
|
|
{
|
|
|
|
atlas->image = g_new0 (GskGLImage, 1);
|
|
|
|
gsk_gl_image_create (atlas->image, self->gl_driver, atlas->width, atlas->height);
|
2019-04-24 11:27:43 +00:00
|
|
|
gdk_gl_context_label_object_printf (gsk_gl_driver_get_gl_context (self->gl_driver),
|
|
|
|
GL_TEXTURE, atlas->image->texture_id,
|
|
|
|
"Glyph atlas %d", atlas->image->texture_id);
|
2017-11-18 13:30:57 +00:00
|
|
|
}
|
|
|
|
|
2019-01-06 14:35:54 +00:00
|
|
|
if (atlas->pending_glyph.key != NULL)
|
|
|
|
upload_dirty_glyph (self, atlas);
|
2017-11-18 13:30:57 +00:00
|
|
|
|
|
|
|
return atlas->image;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gsk_gl_glyph_cache_begin_frame (GskGLGlyphCache *self)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
GHashTableIter iter;
|
|
|
|
GlyphCacheKey *key;
|
|
|
|
GskGLCachedGlyph *value;
|
|
|
|
guint dropped = 0;
|
|
|
|
|
|
|
|
self->timestamp++;
|
|
|
|
|
|
|
|
|
2019-02-10 09:07:24 +00:00
|
|
|
if ((self->timestamp - 1) % CHECK_INTERVAL != 0)
|
2017-11-18 13:30:57 +00:00
|
|
|
return;
|
|
|
|
|
|
|
|
/* look for glyphs that have grown old since last time */
|
|
|
|
g_hash_table_iter_init (&iter, self->hash_table);
|
|
|
|
while (g_hash_table_iter_next (&iter, (gpointer *)&key, (gpointer *)&value))
|
|
|
|
{
|
2019-02-10 09:07:24 +00:00
|
|
|
const guint age = self->timestamp - value->timestamp;
|
2017-11-18 13:30:57 +00:00
|
|
|
|
|
|
|
if (MAX_AGE <= age && age < MAX_AGE + CHECK_INTERVAL)
|
|
|
|
{
|
|
|
|
GskGLGlyphAtlas *atlas = value->atlas;
|
|
|
|
|
|
|
|
if (atlas)
|
|
|
|
atlas->old_pixels += value->draw_width * value->draw_height;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* look for atlases to drop, and create a mapping of updated texture indices */
|
|
|
|
for (i = self->atlases->len - 1; i >= 0; i--)
|
|
|
|
{
|
|
|
|
GskGLGlyphAtlas *atlas = g_ptr_array_index (self->atlases, i);
|
|
|
|
|
|
|
|
if (atlas->old_pixels > MAX_OLD * atlas->width * atlas->height)
|
|
|
|
{
|
2018-01-14 14:52:52 +00:00
|
|
|
GSK_RENDERER_NOTE(self->renderer, GLYPH_CACHE,
|
|
|
|
g_message ("Dropping atlas %d (%g.2%% old)",
|
2017-11-18 13:30:57 +00:00
|
|
|
i, 100.0 * (double)atlas->old_pixels / (double)(atlas->width * atlas->height)));
|
|
|
|
|
|
|
|
if (atlas->image)
|
|
|
|
{
|
|
|
|
gsk_gl_image_destroy (atlas->image, self->gl_driver);
|
|
|
|
atlas->image->texture_id = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Remove all glyphs that point to this atlas */
|
|
|
|
g_hash_table_iter_init (&iter, self->hash_table);
|
|
|
|
while (g_hash_table_iter_next (&iter, (gpointer *)&key, (gpointer *)&value))
|
|
|
|
{
|
|
|
|
if (value->atlas == atlas)
|
|
|
|
g_hash_table_iter_remove (&iter);
|
|
|
|
}
|
|
|
|
/* TODO: The above loop inside this other loop could be slow... */
|
|
|
|
|
|
|
|
g_ptr_array_remove_index (self->atlases, i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-14 14:52:52 +00:00
|
|
|
GSK_RENDERER_NOTE(self->renderer, GLYPH_CACHE, g_message ("Dropped %d glyphs", dropped));
|
2017-11-18 13:30:57 +00:00
|
|
|
}
|