[vlc-commits] commit: skins2: improve refresh of layouts (Erwan Tulou )

git at videolan.org git at videolan.org
Sat Jul 31 22:49:33 CEST 2010


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Fri Jul 30 00:13:02 2010 +0200| [a1921136e0dcdc037994d34a0c12be7401f59d00] | committer: Erwan Tulou 

skins2: improve refresh of layouts

Up to now, notification of invalidated subareas was available for controls
but yet, the layout always ended up being totally rebuilt. For instance,
 a small animated image meant a total rebuild of everything. For simple skins,
 this could go unnoticed, but old computers had much difficulty with more
 complex skins (e.g wmp11), that were mostly busy rebuilding layouts
 over and over.

This patch ensures that only what needs to be rebuilt is rebuilt. Some skins
 like wmp11 on Linux do show dramatic improvement with this one patch.

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

 modules/gui/skins2/controls/ctrl_button.cpp       |   16 ++-
 modules/gui/skins2/controls/ctrl_button.hpp       |    2 +-
 modules/gui/skins2/controls/ctrl_checkbox.cpp     |   21 +++-
 modules/gui/skins2/controls/ctrl_checkbox.hpp     |    2 +-
 modules/gui/skins2/controls/ctrl_generic.cpp      |    5 +-
 modules/gui/skins2/controls/ctrl_generic.hpp      |    4 +-
 modules/gui/skins2/controls/ctrl_image.cpp        |   45 +++++-
 modules/gui/skins2/controls/ctrl_image.hpp        |    2 +-
 modules/gui/skins2/controls/ctrl_list.cpp         |   14 ++-
 modules/gui/skins2/controls/ctrl_list.hpp         |    2 +-
 modules/gui/skins2/controls/ctrl_move.cpp         |    4 +-
 modules/gui/skins2/controls/ctrl_move.hpp         |    2 +-
 modules/gui/skins2/controls/ctrl_radialslider.cpp |   25 +++-
 modules/gui/skins2/controls/ctrl_radialslider.hpp |    2 +-
 modules/gui/skins2/controls/ctrl_resize.cpp       |    4 +-
 modules/gui/skins2/controls/ctrl_resize.hpp       |    2 +-
 modules/gui/skins2/controls/ctrl_slider.cpp       |  155 ++++++++++++++++-----
 modules/gui/skins2/controls/ctrl_slider.hpp       |   21 +++-
 modules/gui/skins2/controls/ctrl_text.cpp         |   18 ++-
 modules/gui/skins2/controls/ctrl_text.hpp         |    2 +-
 modules/gui/skins2/controls/ctrl_tree.cpp         |   15 ++-
 modules/gui/skins2/controls/ctrl_tree.hpp         |    2 +-
 modules/gui/skins2/controls/ctrl_video.cpp        |   19 ++-
 modules/gui/skins2/controls/ctrl_video.hpp        |    2 +-
 modules/gui/skins2/src/anim_bitmap.cpp            |    9 +-
 modules/gui/skins2/src/anim_bitmap.hpp            |    2 +-
 modules/gui/skins2/src/generic_layout.cpp         |   37 ++---
 modules/gui/skins2/utils/pointer.hpp              |  106 ++++++++++++++
 28 files changed, 419 insertions(+), 121 deletions(-)

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


More information about the vlc-commits mailing list