Visual bases checks if visual already staged before adding to stage 93/97593/4
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Mon, 14 Nov 2016 20:17:08 +0000 (20:17 +0000)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Tue, 15 Nov 2016 11:40:05 +0000 (11:40 +0000)
commit5f03eb8d802b39ab519b15d5bca02f0ed01f2766
tree727d87f619f79703fd4130f10754c1fda0c159d2
parentf871dce5373ce3d4f414963a68505eefc0d49cd2
Visual bases checks if visual already staged before adding to stage

Fixes bug in which a stage visual can be staged again, caused a new renderer to be created and lost the handle to prevous renderer.
  Meant stray renderers could exist in the control. Leak!

Visual bases checks if visual already staged before adding to stage Fixes bug in which a staged visual can be staged again, caused a new renderer to be created and lost the handle to previous renderer. Meant stray a renderer could exist in the control. Leak! Can occur in control development or with direct use of Visual::SetOnStage. Control Example. Button:Setup { register visual A register visual B } Button::OnStageConnection { enable visual A (call 1) enable visual B Control::OnStageConnection; (call 2) } Call 1 initializes a renderer and puts it on stage. Call 2 initializes and puts on stage all registered visuals without checking if already staged.

Logging in control increased

Change-Id: I98383cac66e833b13765d8aef88767a3e09946b2
dali-toolkit/internal/visuals/image/image-visual.cpp
dali-toolkit/internal/visuals/visual-base-impl.cpp
dali-toolkit/public-api/controls/control-impl.cpp