diff options
author | Christian Hergert <christian@hergert.me> | 2016-04-26 19:30:30 -0700 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-05-05 15:04:00 -0400 |
commit | cdab14dc22d9ff0cef50413fd647cfdc071f3962 (patch) | |
tree | 02b7cb58fd42e847391e5432c34decf519950faf /gtk/gtkcssimagesurface.c | |
parent | ab300e7de3571a06d1dc0853dffea519a621116a (diff) | |
download | gtk+-cdab14dc22d9ff0cef50413fd647cfdc071f3962.tar.gz |
pixelcache: reuse existing timeout source when possible
This avoids the g_source_remove(), g_source_destroy(),
g_timer_source_new(), and g_source_set_name_by_id() in the common case.
Instead, we reuse our previous source and update the ready time to our
new deadline. We lose the coalescing with g_timeout_add_seconds(), but
that is not going to help in the common case anyway (unless you have
three hands and can scroll multiple pixelcached backed widgets at once).
https://bugzilla.gnome.org/show_bug.cgi?id=765640
Diffstat (limited to 'gtk/gtkcssimagesurface.c')
0 files changed, 0 insertions, 0 deletions