Disabled automatic creation of TextStyle::Impl object on every TextStyle object.
authorRichard Underhill <r.underhill@partner.samsung.com>
Mon, 31 Mar 2014 14:39:35 +0000 (15:39 +0100)
committerPaul Wisbey <p.wisbey@samsung.com>
Thu, 3 Apr 2014 16:11:44 +0000 (17:11 +0100)
commit5d42e5d92699e5afa1d977bc9675068787ab650b
treefcb8f8595de9369e4c9b6d36318c2aa5793b62c3
parent82f72f4a0bbf9a190d5e3e298206c8f6a0423206
Disabled automatic creation of TextStyle::Impl object on every TextStyle object.

[Issue#] N/A

[Problem] Unnecessary memory overhead on unused Implementation objects

[Cause]

[Solution] TextStyle::Impl is only created when a parameter contained
in that object is written to. Any query for a parameter on an
uninitialized Implementation object will return a default value
directly, without creating that Implementation object.

Signed-off-by: Richard Underhill <r.underhill@partner.samsung.com>
capi/dali/public-api/text/text-style.h
dali/public-api/text/text-style.cpp