Fixing culling for magnifier use case 68/272368/6
authorDavid Steele <david.steele@samsung.com>
Mon, 14 Mar 2022 17:17:52 +0000 (17:17 +0000)
committerDavid Steele <david.steele@samsung.com>
Mon, 4 Apr 2022 14:51:04 +0000 (15:51 +0100)
commit22b436e684416fa7e5a6f00d42912db5c8eebd61
treec68dde5eb94e847a77dea3adfa0a510ebb7c8211
parent9edf238021fde748a244059e0e1c9cf6eca452bd
Fixing culling for magnifier use case

Should use the camera's canvas size, not the viewport.

Added canvas size to left/right/top/bottom clipping distance
in camera for perspective projection

Fixed bug that would always force using perspective projection
Fixed bug with modifying scene object directly in event thread.

Top and Bottom clipping plane values for perspective have been
made consistent with values for Ortho projection; however, this
currently forces top to be +ve and bottom to be -ve when set
using just size. Test cases are inconsistent in this regard; when
set via l/r/t/b/n/f API, top and bottom are -ve and +ve respectively.
  Have used fabsf when re-calculating bounding box dimensions to
allow for this inconsistency.

Change-Id: I95e80e4c09f17a3240cccf16df23f09e8d9ad9cf
automated-tests/src/dali/utc-Dali-CameraActor.cpp
dali/internal/event/actors/camera-actor-impl.cpp
dali/internal/render/common/render-item.cpp
dali/internal/render/common/render-item.h
dali/internal/update/manager/render-instruction-processor.cpp
dali/internal/update/render-tasks/scene-graph-camera.cpp
dali/internal/update/render-tasks/scene-graph-camera.h