]> git.sesse.net Git - vlc/commit
skins2: implement a ArtManager singleton
authorErwan Tulou <erwan10@videolan.org>
Tue, 20 Jul 2010 09:12:01 +0000 (11:12 +0200)
committerErwan Tulou <erwan10@videolan.org>
Tue, 20 Jul 2010 10:42:09 +0000 (12:42 +0200)
commit4cd590ad52fcc3f94e7c409523d64fe6fcfb32a5
tree073c3f7ffbc9f9fde99388aba369beeede2b3283
parentab8483243dbccc5af8cd3ebf88239ba9a88421d9
skins2: implement a ArtManager singleton

This singleton is based on the same pattern as VlcManager or VoutManager.
It is intended to load and cache art for the whole skin.
Caching makes sense because 1/ several controls within a skin can display
the current art, and 2/ art is likely to be reused by successive inputs
(music album, repeat). Yet, caching is limited to two art for memory reason.
modules/gui/skins2/Modules.am
modules/gui/skins2/controls/ctrl_image.cpp
modules/gui/skins2/src/art_manager.cpp [moved from modules/gui/skins2/src/art_bitmap.cpp with 62% similarity]
modules/gui/skins2/src/art_manager.hpp [moved from modules/gui/skins2/src/art_bitmap.hpp with 61% similarity]
modules/gui/skins2/src/skin_common.hpp
modules/gui/skins2/src/skin_main.cpp