Fix several hit issue for offscreen rendering 58/310258/6
authorSeungho Baek <sbsh.baek@samsung.com>
Wed, 24 Apr 2024 12:21:39 +0000 (21:21 +0900)
committerSeungho Baek <sbsh.baek@samsung.com>
Fri, 3 May 2024 07:20:27 +0000 (16:20 +0900)
commit189a790ed761a6d29263936c9b24c6ac702b7555
tree543eda67486f19fc2ebdf818fc46c1cfc0577c43
parentbf74845edaf0ae30569b7a3f72fa530924011418
Fix several hit issue for offscreen rendering

 - Previous implementation
   - MappingActor is not hittable by default, but it was used to check
     whether it is hitted from OnScreen RenderTask or not in HitTestRenderTaskList.
   - There is nothing to check the layer including MappingActor is consuming hit.

 - Current implementation
   - For the OnScreen hit result, check whether there is a mappingActor of OffScreen
     hit results that can be hit in front of the OnScreen hit result.
     If it is, returns the OffScreen hit results.
   - If the OnScreen hit result is layer and the layer consumes hit(the layer must
     not be hittable), returns the OffScreen hit results.
   - If there is no hit in OnScreen but there are hit results from OffScreen
     RenderTask, returns the top OffScreen hit results.

Change-Id: I2788ed90dbe0145b4c263c371353b201c65c2a80
Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
automated-tests/src/dali/utc-Dali-HitTestAlgorithm.cpp
dali/internal/event/events/hit-test-algorithm-impl.cpp
dali/internal/event/render-tasks/render-task-impl.cpp
dali/internal/event/render-tasks/render-task-impl.h