From f4c9619b3661d6aa8af41bf28f81c1944c2dd84a Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Tue, 22 Feb 2022 21:54:22 +0900 Subject: [PATCH] Implement some more speed-up : Syncing test harness changes Change-Id: Ia258b91a0b2a74175bafdcd1d80d42bbaa2d1cc0 Signed-off-by: Eunki, Hong --- .../test-graphics-command-buffer.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-command-buffer.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-command-buffer.h index 3df3219..96b0021 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-command-buffer.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-command-buffer.h @@ -2,7 +2,7 @@ #define DALI_TEST_GRAPHICS_COMMAND_BUFFER_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 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. @@ -647,9 +647,9 @@ public: { } - void BindVertexBuffers(uint32_t firstBinding, - std::vector buffers, - std::vector offsets) override + void BindVertexBuffers(uint32_t firstBinding, + const std::vector& buffers, + const std::vector& offsets) override { mCommands.emplace_back(); mCommands.back().type = CommandType::BIND_VERTEX_BUFFERS; @@ -712,7 +712,7 @@ public: mCallStack.PushCall("BindPipeline", ""); } - void BindTextures(std::vector& textureBindings) override + void BindTextures(const std::vector& textureBindings) override { mCommands.emplace_back(); mCommands.back().type = CommandType::BIND_TEXTURES; @@ -720,7 +720,7 @@ public: mCallStack.PushCall("BindTextures", ""); } - void BindSamplers(std::vector& samplerBindings) override + void BindSamplers(const std::vector& samplerBindings) override { mCommands.emplace_back(); mCommands.back().data.bindSamplers.samplerBindings = std::move(samplerBindings); @@ -747,10 +747,10 @@ public: } void BeginRenderPass( - Graphics::RenderPass* renderPass, - Graphics::RenderTarget* renderTarget, - Graphics::Rect2D renderArea, - std::vector clearValues) override + Graphics::RenderPass* renderPass, + Graphics::RenderTarget* renderTarget, + Graphics::Rect2D renderArea, + const std::vector& clearValues) override { mCommands.emplace_back(CommandType::BEGIN_RENDER_PASS); auto& cmd = mCommands.back(); -- 2.7.4