Avoid several excessive per-frame LLView::getChildView calls by instead caching the results in postBuild. (Added CachedUICtrl, which is basically just a self-nulling pointer to not have to make ui ctors dirtier)
This commit is contained in:
@@ -110,6 +110,9 @@ protected:
|
||||
LLComboBox* mGestureCombo;
|
||||
|
||||
LLChatBarGestureObserver* mObserver;
|
||||
|
||||
CachedUICtrl<LLButton> mHistoryBtn;
|
||||
CachedUICtrl<LLButton> mSayBtn;
|
||||
};
|
||||
|
||||
extern LLChatBar *gChatBar;
|
||||
|
||||
Reference in New Issue
Block a user