• Daniel Garcia Moreno's avatar
    texture-cache: Remove also scaled keys from the cache · e642e1c1
    Daniel Garcia Moreno authored
    We're storing in the texture cache images and scaled images appending
    the scaling factor to the key. When a file changes the cache key
    corresponding to that file is removed, but not the keys for the scaled
    ones so that images in the cache are never reloaded.
    
    This patch removes all keys from the cache related to the file that
    changes, including those with the scaling factor.
    
    A new set (hash table) was added to keep track of scale used to be able
    to remove all possible images in the cache.
    
    When the KEY is removed from the cache, we can look now in the scale set
    for and each scale we also remove the key "KEY1.000000", "KEY2.000000",
    etc.
    
    Assuming that the number of used scales is small (I would typically
    expect one or two), the overhead should be negligible.
    
    GNOME/gnome-shell!567
    e642e1c1
Name
Last commit
Last update
.gitlab-ci Loading commit data...
.settings Loading commit data...
data Loading commit data...
docs/reference Loading commit data...
js Loading commit data...
lint Loading commit data...
man Loading commit data...
meson Loading commit data...
po Loading commit data...
src Loading commit data...
subprojects Loading commit data...
test Loading commit data...
tests Loading commit data...
tools Loading commit data...
.eslintrc.yml Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
HACKING.md Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
README.mdwn Loading commit data...
cldr2json.py Loading commit data...
config.h.meson Loading commit data...
gnome-shell.doap Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...