summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterdebugmaterials.h
diff options
context:
space:
mode:
authorWilliam Todd Stinson <stinson@lindenlab.com>2012-11-01 17:49:49 -0700
committerWilliam Todd Stinson <stinson@lindenlab.com>2012-11-01 17:49:49 -0700
commit34f561c853fd672309aee340b8b0c4e3e9ed6196 (patch)
tree10baa6bd73a6e1d8234d9c3508e1e71bc5724a1a /indra/newview/llfloaterdebugmaterials.h
parentd593b8b3b89e3b7f38f0439e013adfb8760a52c0 (diff)
NORSPEC-8: Adding ability to parse GET data over multiple frames to avoid viewer timeout and crash on regions with large numbers of materials.
Diffstat (limited to 'indra/newview/llfloaterdebugmaterials.h')
-rw-r--r--indra/newview/llfloaterdebugmaterials.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/newview/llfloaterdebugmaterials.h b/indra/newview/llfloaterdebugmaterials.h
index 63fa481800..b3983ecd6c 100644
--- a/indra/newview/llfloaterdebugmaterials.h
+++ b/indra/newview/llfloaterdebugmaterials.h
@@ -55,6 +55,8 @@ public:
virtual void onOpen(const LLSD& pKey);
virtual void onClose(bool pIsAppQuitting);
+ virtual void draw();
+
protected:
private:
@@ -106,7 +108,7 @@ private:
void queryViewableObjects();
- void parseGetResponse(const LLSD& pContent);
+ void parseGetResponse();
void parsePutResponse(const LLSD& pContent);
void parsePostResponse(const LLSD& pContent);
@@ -119,6 +121,10 @@ private:
void clearPostResults();
void clearViewableObjectsResults();
+ void setUnparsedGetData(const LLSD& pGetData);
+ void clearUnparsedGetData();
+ void updateGetParsingStatus();
+
void updateStatusMessage();
void updateControls();
std::string convertToPrintableMaterialID(const LLSD& pBinaryHash) const;
@@ -145,6 +151,7 @@ private:
LLTextBase* mStatusText;
LLButton* mGetButton;
+ LLTextBase* mParsingStatusText;
LLScrollListCtrl* mGetNormalMapScrollList;
LLScrollListCtrl* mGetSpecularMapScrollList;
LLScrollListCtrl* mGetOtherDataScrollList;
@@ -186,6 +193,9 @@ private:
boost::signals2::connection mRegionCrossConnection;
boost::signals2::connection mTeleportFailedConnection;
boost::signals2::connection mSelectionUpdateConnection;
+
+ LLSD mUnparsedGetData;
+ S32 mNextUnparsedGetDataIndex;
};