Implement some more speed-up : Reserve TextureBindings + don't copy geometry 33/271533/3
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 22 Feb 2022 12:39:36 +0000 (21:39 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Wed, 23 Feb 2022 02:34:37 +0000 (11:34 +0900)
commit5667076dada6054ae180aebcfeb1a66954e7f223
tree28f8f7e1a769c7bfaf42591864f32044da35663f
parentf19e582fe69147df2e753162086b2d18611b12ae
Implement some more speed-up : Reserve TextureBindings + don't copy geometry

Make some GraphicsCommand API's input as const vector<>&

These will not copy the internal values. and also we can assume that
inputed data didn't change in that API

+

We reserve textureBinding's capacity as the Count of textures.
Most of texture have graphics object, and it will fitin that
reserved memory area.
This patch reduce unuseful re-allocation internal std::vector.

Change-Id: Ic9eee1ae2fe171431cf20a58c47af344edc977ef
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
automated-tests/src/dali/dali-test-suite-utils/test-graphics-command-buffer.h
dali/graphics-api/graphics-command-buffer.h
dali/internal/render/renderers/render-renderer.cpp