[vlc-commits] commit: skins2: implement a ArtManager singleton (Erwan Tulou )

git at videolan.org git at videolan.org
Tue Jul 20 12:42:45 CEST 2010


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Tue Jul 20 11:12:01 2010 +0200| [4cd590ad52fcc3f94e7c409523d64fe6fcfb32a5] | committer: Erwan Tulou 

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4cd590ad52fcc3f94e7c409523d64fe6fcfb32a5
---

 modules/gui/skins2/Modules.am                      |    4 +-
 modules/gui/skins2/controls/ctrl_image.cpp         |    9 +--
 .../skins2/src/{art_bitmap.cpp => art_manager.cpp} |   75 ++++++++++++--------
 .../skins2/src/{art_bitmap.hpp => art_manager.hpp} |   53 +++++++++-----
 modules/gui/skins2/src/skin_common.hpp             |    3 +
 modules/gui/skins2/src/skin_main.cpp               |   18 ++++--
 6 files changed, 99 insertions(+), 63 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=4cd590ad52fcc3f94e7c409523d64fe6fcfb32a5


More information about the vlc-commits mailing list