Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2013-01-24 19:51:39 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:49:16 +0300
commit8650c6cd814d6ac04d754689fd15b23701fc7776 (patch)
treea653c8d7b8e2e9394f514e8f58e6621e52f0f586 /gui/button.hpp
parent7190e7c12e2b8fd933c9b41939a713f57a0c0cf5 (diff)
refactored gui::Button to use graphics::DisplayList's for faster rendering.
Diffstat (limited to 'gui/button.hpp')
-rw-r--r--gui/button.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/button.hpp b/gui/button.hpp
index 049cf16df1..0be6bc233c 100644
--- a/gui/button.hpp
+++ b/gui/button.hpp
@@ -33,9 +33,14 @@ namespace gui
unsigned m_minHeight;
scoped_ptr<TextView> m_textView;
+ map<EState, shared_ptr<graphics::DisplayList> > m_dls;
+
+ void cacheButtonBody(EState state);
mutable vector<m2::AnyRectD> m_boundRects;
+ void cache();
+
public:
struct Params : Element::Params
@@ -75,6 +80,8 @@ namespace gui
vector<m2::AnyRectD> const & boundRects() const;
void draw(graphics::OverlayRenderer * r, math::Matrix<double, 3, 3> const & m) const;
+ void purge();
+
/// @}
};
}