1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add zoom-to-range animation.

This commit is contained in:
Bartosz Taudul
2017-11-27 22:41:30 +01:00
parent ba80b0c16a
commit dd8694350e
2 changed files with 39 additions and 13 deletions
+10 -3
View File
@@ -36,6 +36,15 @@ class View
typedef tracy::power_of_two_hash_policy hash_policy;
};
struct Animation
{
bool active = false;
int64_t start0, start1;
int64_t end0, end1;
double progress;
double lenMod;
};
public:
View() : View( "127.0.0.1" ) {}
View( const char* addr );
@@ -228,9 +237,6 @@ private:
int64_t m_zvStart;
int64_t m_zvEnd;
int64_t m_zvStartNext;
int64_t m_zvEndNext;
int64_t m_delay;
int64_t m_resolution;
double m_timerMul;
@@ -266,6 +272,7 @@ private:
bool m_onlyContendedLocks;
Namespace m_namespace;
Animation m_zoomAnim;
bool m_terminate;
};