GNOME Bugzilla – Bug 672273
st-texture-cache: Cleanups and deduplication for async URI requests
Last modified: 2012-03-18 10:43:31 UTC
See patches. The first for are "unused" cleanups (I seem to be getting surprisingly good at finding those), and the last one is what I've been working towards: deduplication for async URI requests. Going forward on reducing our memory usage, how would people feel about merging the cairo/cogl surface entries in the keyed cache so we only store raw texture data and the surfaces are created on the fly?
Created attachment 209979 [details] [review] st-texture-cache: Remove an unused argument from create_default_texture
Created attachment 209980 [details] [review] st-texture-cache: Remove unused fields from AsyncTextureLoadData
Created attachment 209981 [details] [review] st-entry: Remove unused set_icon_from_file methods This lets us ditch some methods in the texture cache.
Created attachment 209982 [details] [review] st-texture-cache: Remove now unused methods load_uri_sync and load_file_simple are now unused.
Created attachment 209983 [details] [review] st-texture-cache: Deduplicate async URI requests More than one outstanding request to the same URI should now be deduplicated, and the framework is there if we want to cache async loaded URIs as well
Created attachment 209984 [details] [review] st-texture-cache: Remove unused fields from AsyncTextureLoadData Remove the unused "icon" field as well.
Review of attachment 209979 [details] [review]: Looks good.
Review of attachment 209981 [details] [review]: Looks good.
Review of attachment 209983 [details] [review]: Looks good.
Review of attachment 209982 [details] [review]: OK.
Review of attachment 209984 [details] [review]: OK.
Attachment 209979 [details] pushed as 63cf470 - st-texture-cache: Remove an unused argument from create_default_texture Attachment 209981 [details] pushed as 36d20eb - st-entry: Remove unused set_icon_from_file methods Attachment 209982 [details] pushed as 0ebddfc - st-texture-cache: Remove now unused methods Attachment 209983 [details] pushed as 46c0360 - st-texture-cache: Deduplicate async URI requests Attachment 209984 [details] pushed as db4b266 - st-texture-cache: Remove unused fields from AsyncTextureLoadData