From: jmm Date: Wed, 10 Jan 2024 03:44:05 +0000 (+0900) Subject: [Tizen] Fix svace issue X-Git-Tag: accepted/tizen/8.0/unified/20240122.175513~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F55%2F304255%2F1;p=platform%2Fcore%2Fuifw%2Fdali-core.git [Tizen] Fix svace issue Change-Id: I1c25cf639bad76e4326a9c0f363bad88738b4dd5 --- 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 6591d04..2844fe3 100644 --- a/dali/internal/render/common/render-manager.cpp +++ b/dali/internal/render/common/render-manager.cpp @@ -858,7 +858,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;