Control impl just uses Visual Registration instead of a visual member variable 54/97254/3
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Fri, 11 Nov 2016 14:57:07 +0000 (14:57 +0000)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Mon, 14 Nov 2016 15:40:37 +0000 (07:40 -0800)
commit21207189b1d7e6cb3fed26d90d29294a0d3a4fb5
tree89acccc58d500f1fca3102293566b565e9c5e85a
parentdd6db6bdc7bc9977b8dca60269090f55696153dd
Control impl just uses Visual Registration instead of a visual member variable

Previously control-impl registered a backgrounf visual but also kept a handle to it as member variable.

Now GetVisual is called when the background visual is needed.  The member handle is removed.
Passing an empty map for SetProperty( Property::BACKGROUND ) unregisters and removes the background visual

Change-Id: Iff835223e67b96f4cbaaf5296a30fb4cb404981d
dali-toolkit/public-api/controls/control-impl.cpp