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>2012-10-11 19:34:13 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:45:22 +0300
commit0e4f41bfb531d6b49caa8ee8fc8de7216774108b (patch)
treeb4b2a5ba68c58f2aed1b56c602005c6af1089a4f /anim/controller.hpp
parentc4c7570816b3f1888d6a2c3a27922a2d8d4c51b2 (diff)
dividing anim::Task's into visual/non-visual and taking it into account in RenderPolicy::NeedRedraw.
Diffstat (limited to 'anim/controller.hpp')
-rw-r--r--anim/controller.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/anim/controller.hpp b/anim/controller.hpp
index 398f191a4d..a26f5e2721 100644
--- a/anim/controller.hpp
+++ b/anim/controller.hpp
@@ -25,6 +25,8 @@ namespace anim
int m_IdleThreshold;
int m_IdleFrames;
+ void AddTaskImpl(list<shared_ptr<Task> > & l, shared_ptr<Task> const & task);
+ void HasVisualTasksImpl(list<shared_ptr<Task> > & l, bool * res) const;
static void CopyAndClearTasks(list<shared_ptr<Task> > & from, list<shared_ptr<Task> > & to);
static void MergeTasks(list<shared_ptr<Task> > & from, list<shared_ptr<Task> > & to);
@@ -37,6 +39,8 @@ namespace anim
void AddTask(shared_ptr<Task> const & task);
// Do we have animation tasks, which are currently running?
bool HasTasks();
+ // Do we have visual animation tasks, which are currently running?
+ bool HasVisualTasks();
// Lock/Unlock controller. Locked controller
// is considered to be in "transition" mode from one task to another
// and this situation is taken into account into RenderPolicy when
@@ -53,7 +57,7 @@ namespace anim
// catch the Controller up and animate everything smoothly without
// interrupting rendering process, which might had happened in these
// "frames-in-the-middle".
- bool IsPreWarmed() const;
+ bool IsVisuallyPreWarmed() const;
// Getting current simulation time
double GetCurrentTime() const;
};