[dali_1.0.20] Merge branch 'tizen'
[platform/core/uifw/dali-core.git] / dali / internal / render / common / render-debug.cpp
index dc1d4f6..6a512bd 100644 (file)
@@ -48,12 +48,12 @@ void PrintFrameEnd()
   DALI_LOG_RENDER_INFO( "RENDER END\n\n" );
 }
 
-void PrintRenderInstruction( const SceneGraph::RenderInstruction& instruction )
+void PrintRenderInstruction( const SceneGraph::RenderInstruction& instruction, BufferIndex index )
 {
   const char* target = (0 != instruction.mOffscreenTextureId) ? "FrameBuffer" : "Screen";
 
   std::stringstream debugStream;
-  debugStream << "Rendering to " << target << ", View: " << *(instruction.mViewMatrix) << " Projection: " << *(instruction.mProjectionMatrix);
+  debugStream << "Rendering to " << target << ", View: " << *(instruction.GetViewMatrix(index)) << " Projection: " << *(instruction.GetProjectionMatrix(index));
 
   if( instruction.mIsViewportSet )
   {
@@ -133,6 +133,24 @@ void PrintRenderItem( const SceneGraph::RenderItem& item )
   DALI_LOG_RENDER_INFO( "         %s\n", debugString.c_str() );
 }
 
+void PrintRendererCount( unsigned int frameCount, unsigned int rendererCount )
+{
+  if( frameCount % 120 == 30 ) // Print every 2 seconds reg
+  {
+    Debug::LogMessage( Debug::DebugInfo, "Renderer Total # renderers: %u\n", rendererCount );
+  }
+}
+
+void PrintCullCount( unsigned int frameCount, unsigned int culledCount )
+{
+  if( frameCount % 120 == 30 ) // Print every 2 seconds reg
+  {
+    Debug::LogMessage( Debug::DebugInfo, "Renderer # Culled renderers: %u\n", culledCount );
+  }
+}
+
+
+
 } // Render
 
 } // Internal