(HitTest) Ensure we do not create Actor handles when using the hit-test callback
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 4 Jun 2014 13:10:52 +0000 (14:10 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 10 Jun 2014 15:01:16 +0000 (16:01 +0100)
commitd9071789fb11a4ac9ad38bb9d6128ec27ffbbecc
tree41d3b48fd5a01162ec8ee94858db241c3466a1fd
parentd04d0caeecbaaae787bdc686d654681fd3fd4bfc
(HitTest) Ensure we do not create Actor handles when using the hit-test callback

[problem]      Whenever we call the hit-test callback, we create a temporary Actor handle which
               can be quite an expensive operation (as constructors are called). We HAVE to do
               this for public hit-testing, but we are paying the penalty on internal hit-testing
               as well.
[cause]        Using the same interface for public and internal hit-testing.
[solution]     Use a functor internally which uses a specialised functor with an Actor handle for
               external hit-testing and another functor for the internal hit-test which uses
               an Internal::Actor* so we do not pay the penalty of creating a handle then.

Change-Id: I7bb81265b9c03aa3c7a714f0dd2ceec22e6a997b
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
dali/internal/event/events/hit-test-algorithm-impl.cpp
dali/internal/event/events/hit-test-algorithm-impl.h