summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2012-03-09 16:34:17 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2012-03-09 16:34:17 -0500
commitbcc2547911fe6bd3ab433118dcdbfd84b3f024ec (patch)
tree0295ac54d8110f71ff4cc8ff23111a4b4295d1ad /indra/newview
parent7bc698cbeca5ef3aab93bf7e4b843004dd5a7afb (diff)
SH-2970 WIP - more phase tracking
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/llvoavatar.cpp9
-rwxr-xr-xindra/newview/llvoavatar.h1
-rwxr-xr-xindra/newview/llvoavatarself.cpp8
-rwxr-xr-xindra/newview/llvoavatarself.h1
4 files changed, 19 insertions, 0 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 9cfc0f2fdd..2dbf3ac698 100755
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -983,6 +983,15 @@ void LLVOAvatar::stopPhase(const std::string& phase_name)
timer.pause();
}
+void LLVOAvatar::stopAllPhases()
+{
+ for (phase_map_t::iterator iter = mPhases.begin();
+ iter != mPhases.end(); ++iter)
+ {
+ iter->second.pause();
+ }
+}
+
void LLVOAvatar::clearPhases()
{
mPhases.clear();
diff --git a/indra/newview/llvoavatar.h b/indra/newview/llvoavatar.h
index 143b61b70b..df9d8143b1 100755
--- a/indra/newview/llvoavatar.h
+++ b/indra/newview/llvoavatar.h
@@ -287,6 +287,7 @@ public:
LLFrameTimer& getPhaseTimer(const std::string& phase_name);
void startPhase(const std::string& phase_name);
void stopPhase(const std::string& phase_name);
+ void stopAllPhases();
void clearPhases();
LLSD dumpPhases();
protected:
diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp
index ed3295c43c..27d499b9c4 100755
--- a/indra/newview/llvoavatarself.cpp
+++ b/indra/newview/llvoavatarself.cpp
@@ -98,6 +98,14 @@ void selfClearPhases()
}
}
+void selfStopAllPhases()
+{
+ if (isAgentAvatarValid())
+ {
+ gAgentAvatarp->stopAllPhases();
+ }
+}
+
using namespace LLVOAvatarDefines;
/*********************************************************************************
diff --git a/indra/newview/llvoavatarself.h b/indra/newview/llvoavatarself.h
index 9ac4306419..c9098f174c 100755
--- a/indra/newview/llvoavatarself.h
+++ b/indra/newview/llvoavatarself.h
@@ -390,6 +390,7 @@ BOOL isAgentAvatarValid();
void selfStartPhase(const std::string& phase_name);
void selfStopPhase(const std::string& phase_name);
+void selfStopAllPhases();
void selfClearPhases();
#endif // LL_VO_AVATARSELF_H