DoAction can chage CornerRadius/Borderline/BlurRadius 25/267825/5
authorEunki, Hong <eunkiki.hong@samsung.com>
Fri, 10 Dec 2021 06:45:14 +0000 (15:45 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Tue, 14 Dec 2021 04:54:23 +0000 (13:54 +0900)
commit65ad9904d1df16ac5406fc316265c8f0388f0088
tree458da1006b0d3dd8ed27669a33b2d9e1d1748704
parent908a404d710bddfa2337e82a4f7515c97fa09232
DoAction can chage CornerRadius/Borderline/BlurRadius

we can update properies by DoAction(DevelVisual::Action::UPDATE_PROPERTY).
It is not an usual case, but we may need to prepare of NUI code fix.
(There is some related issue at NUI ImageView)

Here, I update some properies that need to update shader.
We don't want to change the shader many times.
(ex : DoAction with CornerRadius = 1.0f, and DoAction 0.0f after that, and repeat.)
So if someone update properies by DoAction API, turn on
mAlwaysUseXXX = true so shader will not be previous shader anymore.
(This is same logic when these properies are animated.)

Change-Id: I963930f261982d50bd647e4ba7ed4e476dd8898d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
automated-tests/src/dali-toolkit/utc-Dali-Visual.cpp
dali-toolkit/internal/visuals/animated-image/animated-image-visual.h
dali-toolkit/internal/visuals/color/color-visual.cpp
dali-toolkit/internal/visuals/image/image-visual.cpp
dali-toolkit/internal/visuals/image/image-visual.h
dali-toolkit/internal/visuals/visual-base-impl.cpp
dali-toolkit/internal/visuals/visual-base-impl.h