Reduce default visual-base-data memory - Allocate only if we use decoration. 27/285627/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 15 Dec 2022 12:56:20 +0000 (21:56 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 19 Dec 2022 07:51:43 +0000 (16:51 +0900)
commite834cc235a7f24c74b823108f634a4886928daf9
tree01eebed0de4981e54b9ef0ecb6ef8dad1dadaceb
parent379643eb17cd972b2ba79688319aab85883325b2
Reduce default visual-base-data memory - Allocate only if we use decoration.

Borderline relative properties has (4+1+1)*4 = 24 byte and
CornerRadius relative properties has (4+1)*4 = 20 byte.

But most usual visuals don't required that kind of things.
And also, some visual like Text / Npatch doesnt support decoration feature.

So let we make only required visual use that values by allocation.

Now default memory per visual reduced from 44 to 4~8 byte.

Change-Id: Ib27118bcd66339a3d50f78661c133f6588ab9085
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-toolkit/internal/visuals/visual-base-data-impl.cpp
dali-toolkit/internal/visuals/visual-base-data-impl.h
dali-toolkit/internal/visuals/visual-base-impl.cpp