From 7cce33a2871f766b075527c8dcf7c0569eae676d Mon Sep 17 00:00:00 2001 From: jmm Date: Wed, 10 Jan 2024 12:44:05 +0900 Subject: [PATCH] Fix svace issue Change-Id: I1c25cf639bad76e4326a9c0f363bad88738b4dd5 --- dali/internal/event/actors/actor-coords.cpp | 6 +++--- dali/internal/render/common/render-manager.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dali/internal/event/actors/actor-coords.cpp b/dali/internal/event/actors/actor-coords.cpp index 0cabf3c..8957850 100644 --- a/dali/internal/event/actors/actor-coords.cpp +++ b/dali/internal/event/actors/actor-coords.cpp @@ -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); } diff --git a/dali/internal/render/common/render-manager.cpp b/dali/internal/render/common/render-manager.cpp index 48464b0..4931f12 100644 --- a/dali/internal/render/common/render-manager.cpp +++ b/dali/internal/render/common/render-manager.cpp @@ -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; -- 2.7.4