mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
frames: Remove invalidate_cache_timeout
WTF was this for? Was this a hacky bugfix? The git log gives no information.
This commit is contained in:
parent
dd0a6d7e08
commit
beccdd64f5
@ -194,7 +194,6 @@ meta_frames_init (MetaFrames *frames)
|
|||||||
|
|
||||||
frames->expose_delay_count = 0;
|
frames->expose_delay_count = 0;
|
||||||
|
|
||||||
frames->invalidate_cache_timeout_id = 0;
|
|
||||||
frames->invalidate_frames = NULL;
|
frames->invalidate_frames = NULL;
|
||||||
frames->cache = g_hash_table_new (g_direct_hash, g_direct_equal);
|
frames->cache = g_hash_table_new (g_direct_hash, g_direct_equal);
|
||||||
|
|
||||||
@ -250,8 +249,6 @@ meta_frames_finalize (GObject *object)
|
|||||||
g_hash_table_destroy (frames->text_heights);
|
g_hash_table_destroy (frames->text_heights);
|
||||||
|
|
||||||
invalidate_all_caches (frames);
|
invalidate_all_caches (frames);
|
||||||
if (frames->invalidate_cache_timeout_id)
|
|
||||||
g_source_remove (frames->invalidate_cache_timeout_id);
|
|
||||||
|
|
||||||
g_assert (g_hash_table_size (frames->frames) == 0);
|
g_assert (g_hash_table_size (frames->frames) == 0);
|
||||||
g_hash_table_destroy (frames->frames);
|
g_hash_table_destroy (frames->frames);
|
||||||
@ -322,16 +319,6 @@ invalidate_all_caches (MetaFrames *frames)
|
|||||||
frames->invalidate_frames = NULL;
|
frames->invalidate_frames = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
invalidate_cache_timeout (gpointer data)
|
|
||||||
{
|
|
||||||
MetaFrames *frames = data;
|
|
||||||
|
|
||||||
invalidate_all_caches (frames);
|
|
||||||
frames->invalidate_cache_timeout_id = 0;
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
queue_recalc_func (gpointer key, gpointer value, gpointer data)
|
queue_recalc_func (gpointer key, gpointer value, gpointer data)
|
||||||
{
|
{
|
||||||
@ -1739,11 +1726,6 @@ populate_cache (MetaFrames *frames,
|
|||||||
if (!piece->pixmap)
|
if (!piece->pixmap)
|
||||||
piece->pixmap = generate_pixmap (frames, frame, &piece->rect);
|
piece->pixmap = generate_pixmap (frames, frame, &piece->rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (frames->invalidate_cache_timeout_id)
|
|
||||||
g_source_remove (frames->invalidate_cache_timeout_id);
|
|
||||||
|
|
||||||
frames->invalidate_cache_timeout_id = g_timeout_add (1000, invalidate_cache_timeout, frames);
|
|
||||||
|
|
||||||
if (!g_list_find (frames->invalidate_frames, frame))
|
if (!g_list_find (frames->invalidate_frames, frame))
|
||||||
frames->invalidate_frames =
|
frames->invalidate_frames =
|
||||||
|
@ -97,7 +97,6 @@ struct _MetaFrames
|
|||||||
|
|
||||||
int expose_delay_count;
|
int expose_delay_count;
|
||||||
|
|
||||||
int invalidate_cache_timeout_id;
|
|
||||||
GList *invalidate_frames;
|
GList *invalidate_frames;
|
||||||
GHashTable *cache;
|
GHashTable *cache;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user