Make ShaderPrecompiler move shader list + Store shader prefix list as string instead... 36/318236/4
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 26 Sep 2024 01:49:46 +0000 (10:49 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 30 Sep 2024 02:48:46 +0000 (11:48 +0900)
commitf3ed7a7411341d472afd43803696a0bb029091b6
tree67822618f1e6ec5d80a0133de98b2ffd432df450
parent661a6647e85d974f0e6b75204458f1f85754c385
Make ShaderPrecompiler move shader list + Store shader prefix list as string instead string_view

Until now, Precompiler hold only string_view.
It mean, the lifecycle of shader code is not depend on that object.

To make sure that we could control the lifecycle of source code string,
let we keep it as std::string, instead of std::string_view.

And also, make we use std::move instead of copy them.
It will make less performance overhead.

Change-Id: I2b5949b5a408865b5879448630c65a6d3682ecee
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/integration-api/adaptor-framework/shader-precompiler.cpp
dali/integration-api/adaptor-framework/shader-precompiler.h
dali/internal/adaptor/common/combined-update-render-controller.cpp