summaryrefslogtreecommitdiff
path: root/indra/newview/llfasttimerview.h
diff options
context:
space:
mode:
authorRichard Linden <none@none>2013-01-31 00:50:54 -0800
committerRichard Linden <none@none>2013-01-31 00:50:54 -0800
commita441664c109e4fca4154dbf80e108c27b3e9e601 (patch)
treecf7cfadd988bf0b7c23315d9c68f8e034070bb83 /indra/newview/llfasttimerview.h
parent2c68d5367c5c44aceb4ff23d9672c35642e030f7 (diff)
SH-3275 WIP interesting Update viewer metrics system to be more flexible
fast timer bars render correctly
Diffstat (limited to 'indra/newview/llfasttimerview.h')
-rw-r--r--indra/newview/llfasttimerview.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/indra/newview/llfasttimerview.h b/indra/newview/llfasttimerview.h
index 86781b626c..b3e428908a 100644
--- a/indra/newview/llfasttimerview.h
+++ b/indra/newview/llfasttimerview.h
@@ -83,12 +83,26 @@ private:
struct TimerBar
{
- LLRect mRect;
+ TimerBar()
+ : mWidth(0),
+ mSelfWidth(0),
+ mVisible(true),
+ mStartFraction(0.f),
+ mEndFraction(1.f)
+ {}
+ S32 mWidth;
+ S32 mSelfWidth;
+ LLRect mVisibleRect,
+ mChildrenRect;
LLColor4 mColor;
+ bool mVisible;
F32 mStartFraction,
mEndFraction;
};
- LLRect updateTimerBars(LLTrace::TimeBlock* time_block, LLRect bar_rect, std::vector<TimerBar>& bars, S32 history_index);
+ S32 updateTimerBarWidths(LLTrace::TimeBlock* time_block, std::vector<TimerBar>& bars, S32 history_index);
+ S32 updateTimerBarFractions(LLTrace::TimeBlock* time_block, S32 timer_bar_index, std::vector<TimerBar>& bars, S32 history_index, bool draw);
+ S32 drawBar(LLTrace::TimeBlock* time_block, LLRect bar_rect, std::vector<TimerBar>& bars, S32 bar_index, LLPointer<LLUIImage>& bar_image);
+ void updatePauseState();
std::vector<TimerBar>* mTimerBars;
S32 mDisplayMode;