mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -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->invalidate_cache_timeout_id = 0;
|
||||
frames->invalidate_frames = NULL;
|
||||
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);
|
||||
|
||||
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_hash_table_destroy (frames->frames);
|
||||
@ -322,16 +319,6 @@ invalidate_all_caches (MetaFrames *frames)
|
||||
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
|
||||
queue_recalc_func (gpointer key, gpointer value, gpointer data)
|
||||
{
|
||||
@ -1740,11 +1727,6 @@ populate_cache (MetaFrames *frames,
|
||||
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))
|
||||
frames->invalidate_frames =
|
||||
g_list_prepend (frames->invalidate_frames, frame);
|
||||
|
@ -97,7 +97,6 @@ struct _MetaFrames
|
||||
|
||||
int expose_delay_count;
|
||||
|
||||
int invalidate_cache_timeout_id;
|
||||
GList *invalidate_frames;
|
||||
GHashTable *cache;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user