Fix svace issue 88/304088/3
authorjmm <j0064423.lee@samsung.com>
Wed, 10 Jan 2024 03:44:05 +0000 (12:44 +0900)
committerjmm <j0064423.lee@samsung.com>
Wed, 10 Jan 2024 04:15:25 +0000 (13:15 +0900)
Change-Id: I1c25cf639bad76e4326a9c0f363bad88738b4dd5

dali/internal/event/actors/actor-coords.cpp
dali/internal/render/common/render-manager.cpp

index 0cabf3ce3c2a3f8d9d772a185a7f87013344acb8..8957850a6fa57237d12333fa8422a75a50cb5524 100644 (file)
@@ -237,7 +237,7 @@ const Vector2 CalculateCurrentActorScreenPosition(const Actor& actor, BufferInde
     worldPosition -= cameraPosition;
 
     Vector3 actorSize = node.GetSize(bufferIndex) * node.GetWorldScale(bufferIndex);
-    auto    sceneSize = scene.GetCurrentSurfaceRect();                      // Use the update object's size
+    const auto& sceneSize = scene.GetCurrentSurfaceRect();                      // Use the update object's size
     Vector2 halfSceneSize(sceneSize.width * 0.5f, sceneSize.height * 0.5f); // World position origin is center of scene
     Vector3 halfActorSize(actorSize * 0.5f);
     Vector3 anchorPointOffSet = halfActorSize - actorSize * actor.GetAnchorPointForPosition();
@@ -396,7 +396,7 @@ const Vector2 CalculateCurrentActorScreenPositionRenderTaskList(const Actor& act
     const auto& node  = actor.GetNode();
     Scene&      scene = actor.GetScene();
 
-    auto        worldMatrix    = node.GetWorldMatrix(bufferIndex);
+    const auto& worldMatrix    = node.GetWorldMatrix(bufferIndex);
     const auto& renderTaskList = scene.GetRenderTaskList();
     ConvertLocalToScreenRenderTaskList(renderTaskList, actor, worldMatrix, node.GetSize(bufferIndex) * (actor.GetAnchorPointForPosition() - Vector3(0.5f, 0.5f, 0.5f)), result.x, result.y);
   }
@@ -540,7 +540,7 @@ Rect<> CalculateCurrentActorScreenExtentsRenderTaskList(const Actor& actor, Buff
     const auto& node  = actor.GetNode();
     Scene&      scene = actor.GetScene();
 
-    auto        worldMatrix    = node.GetWorldMatrix(bufferIndex);
+    const auto& worldMatrix    = node.GetWorldMatrix(bufferIndex);
     const auto& renderTaskList = scene.GetRenderTaskList();
     ConvertLocalToScreenExtentRenderTaskList(renderTaskList, actor, worldMatrix, node.GetSize(bufferIndex), result);
   }
index 48464b0de990ee0f212afce5a81cb7c2627ba6c6..4931f1232a83546823d732c80470c7bc34813bf0 100644 (file)
@@ -848,7 +848,7 @@ void RenderManager::RenderScene(Integration::RenderStatus& status, Integration::
             auto program = item.mRenderer->PrepareProgram(instruction);
             if(program)
             {
-              auto memoryRequirements = program->GetUniformBlocksMemoryRequirements();
+              const auto& memoryRequirements = program->GetUniformBlocksMemoryRequirements();
 
               totalSizeCPU += memoryRequirements.totalCpuSizeRequired;
               totalSizeGPU += memoryRequirements.totalGpuSizeRequired;