Fix the screen rotation issue
[platform/core/uifw/dali-core.git] / dali / internal / render / common / render-debug.h
index 8d5176e..5934d7c 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_INTERNAL_RENDER_DEBUG_H__
-#define __DALI_INTERNAL_RENDER_DEBUG_H__
+#ifndef DALI_INTERNAL_RENDER_DEBUG_H
+#define DALI_INTERNAL_RENDER_DEBUG_H
 
 /*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@
 
 #define DALI_PRINT_RENDER_START(x) Render::PrintFrameStart(x);
 #define DALI_PRINT_RENDER_END() Render::PrintFrameEnd();
-#define DALI_PRINT_RENDER_INSTRUCTION(x,index) Render::PrintRenderInstruction(x,index);
+#define DALI_PRINT_RENDER_INSTRUCTION(x, index) Render::PrintRenderInstruction(x, index);
 #define DALI_PRINT_RENDER_LIST(x) Render::PrintRenderList(x);
 #define DALI_PRINT_RENDER_ITEM(x) Render::PrintRenderItem(x);
 
@@ -36,7 +36,7 @@
 
 #define DALI_PRINT_RENDER_START(x)
 #define DALI_PRINT_RENDER_END()
-#define DALI_PRINT_RENDER_INSTRUCTION(x,index)
+#define DALI_PRINT_RENDER_INSTRUCTION(x, index)
 #define DALI_PRINT_RENDER_LIST(x)
 #define DALI_PRINT_RENDER_ITEM(x)
 
 //#define DALI_PRINT_RENDERERS 1
 
 #ifdef DALI_PRINT_RENDERERS
-#define DALI_PRINT_RENDERER_COUNT(x, y)  Render::PrintRendererCount(x, y)
+#define DALI_PRINT_RENDERER_COUNT(x, y) Render::PrintRendererCount(x, y)
 #else // DALI_PRINT_RENDERERS
 #define DALI_PRINT_RENDERER_COUNT(x, y)
 #endif // DALI_PRINT_RENDERERS
 
-
 namespace Dali
 {
-
 namespace Internal
 {
-
 class PropertyInputImpl;
 
 namespace SceneGraph
 {
+class Node;
 class RenderInstruction;
 struct RenderList;
 struct RenderItem;
-}
+} // namespace SceneGraph
 
 namespace Render
 {
-
 /**
  * Print a debug message at the start of the render-thread.
  * @param[in] buffer The current render buffer index (previous update buffer)
  */
-void PrintFrameStart( BufferIndex bufferIndex );
+void PrintFrameStart(BufferIndex bufferIndex);
 
 /**
  * Print a debug message at the end of the render-thread.
@@ -88,31 +85,38 @@ void PrintFrameEnd();
  * @param[in] instruction The render-instruction.
  * @param[in] index to use
  */
-void PrintRenderInstruction( const SceneGraph::RenderInstruction& instruction, BufferIndex index );
+void PrintRenderInstruction(const SceneGraph::RenderInstruction& instruction, BufferIndex index);
 
 /**
  * Print some information about a render-list.
  * @param[in] instruction The render-list.
  */
-void PrintRenderList( const SceneGraph::RenderList& list );
+void PrintRenderList(const SceneGraph::RenderList& list);
 
 /**
  * Print some information about a render-item.
  * @param[in] instruction The render-item.
  */
-void PrintRenderItem( const SceneGraph::RenderItem& item );
+void PrintRenderItem(const SceneGraph::RenderItem& item);
 
 /**
  * Print the number of image renderers
  * @param[in] frameCount The frame counter
  * @param[in] rendererCount The number of image renderers
  */
-void PrintRendererCount( unsigned int frameCount, unsigned int rendererCount );
+void PrintRendererCount(unsigned int frameCount, unsigned int rendererCount);
+
+/**
+ * Recursively dumps a Node tree.
+ * @param[in] node The starting node to dump from
+ * @param[in] indent Optional. Leave unset for default indent (used internally while recursing)
+ */
+void DumpNode(const SceneGraph::Node* node, unsigned int indent = 0);
 
-} // Render
+} // namespace Render
 
-} // Internal
+} // namespace Internal
 
-} // Dali
+} // namespace Dali
 
-#endif // __DALI_INTERNAL_RENDER_DEBUG_H__
+#endif // DALI_INTERNAL_RENDER_DEBUG_H