summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorDon Kjer <don@lindenlab.com>2012-07-11 00:30:04 +0000
committerDon Kjer <don@lindenlab.com>2012-07-11 00:30:04 +0000
commita589bc99701d6258d3dd467a5d36fb989348a758 (patch)
treee02fca312d1d685a6e75d7a8e1fbd08b0717d241 /indra/newview/pipeline.cpp
parentcb2b59b48b6cf8aeb17f5b0f9f4063e8340ce144 (diff)
Added LLPipeline eventhost API. Added ForcePeriodicRenderingTime setting.
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp25
1 files changed, 22 insertions, 3 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index cd4c7289a7..72cc6bfcd4 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -72,6 +72,7 @@
#include "llhudtext.h"
#include "lllightconstants.h"
#include "llmeshrepository.h"
+#include "llpipelinelistener.h"
#include "llresmgr.h"
#include "llselectmgr.h"
#include "llsky.h"
@@ -368,6 +369,8 @@ BOOL LLPipeline::sMemAllocationThrottled = FALSE;
S32 LLPipeline::sVisibleLightCount = 0;
F32 LLPipeline::sMinRenderSize = 0.f;
+// EventHost API LLPipeline listener.
+static LLPipelineListener sPipelineListener;
static LLCullResult* sCull = NULL;
@@ -473,13 +476,13 @@ void LLPipeline::init()
if (gSavedSettings.getBOOL("DisableAllRenderFeatures"))
{
- mRenderDebugFeatureMask = 0x0;
+ clearAllRenderDebugFeatures();
}
else
{
- mRenderDebugFeatureMask = 0xffffffff; // By default, all debugging features on
+ setAllRenderDebugFeatures(); // By default, all debugging features on
}
- mRenderDebugMask = 0; // All debug starts off
+ clearAllRenderDebugDisplays(); // All debug displays off
if (gSavedSettings.getBOOL("DisableAllRenderTypes"))
{
@@ -6008,6 +6011,22 @@ void LLPipeline::setRenderDebugFeatureControl(U32 bit, bool value)
}
}
+void LLPipeline::pushRenderDebugFeatureMask()
+{
+ mRenderDebugFeatureStack.push(mRenderDebugFeatureMask);
+}
+
+void LLPipeline::popRenderDebugFeatureMask()
+{
+ if (mRenderDebugFeatureStack.empty())
+ {
+ llerrs << "Depleted render feature stack." << llendl;
+ }
+
+ mRenderDebugFeatureMask = mRenderDebugFeatureStack.top();
+ mRenderDebugFeatureStack.pop();
+}
+
// static
void LLPipeline::setRenderScriptedBeacons(BOOL val)
{