Merge lp://qastaging/~andreas-pokorny/mir/add-geometry-transformation into lp://qastaging/mir
Status: | Rejected |
---|---|
Rejected by: | Andreas Pokorny |
Proposed branch: | lp://qastaging/~andreas-pokorny/mir/add-geometry-transformation |
Merge into: | lp://qastaging/mir |
Diff against target: |
764 lines (+688/-3) 7 files modified
include/shared/mir/geometry/point.h (+21/-1) include/shared/mir/geometry/transformation.h (+149/-0) src/shared/geometry/CMakeLists.txt (+2/-1) src/shared/geometry/transformation.cpp (+243/-0) tests/unit-tests/geometry/CMakeLists.txt (+1/-0) tests/unit-tests/geometry/test-point.cpp (+25/-1) tests/unit-tests/geometry/test-transformation.cpp (+247/-0) |
To merge this branch: | bzr merge lp://qastaging/~andreas-pokorny/mir/add-geometry-transformation |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel van Vugt | Disapprove | ||
PS Jenkins bot (community) | continuous-integration | Needs Fixing | |
Review via email:
|
Commit message
Adds a class describing a co-ordinate transformation
geometry:
The transformation is stored in a way that trivial cases can be detected, and that transformation parameters can be read and changed.
Description of the change
This adds a class to geometry that should encapsulate transformations of surfaces in a way that:
* the structure of the transformation is visible - to allow changes of parts of the transformation
* the inverse of the transformation is available and or can be calculated in a cheap way without precision issues - to get relative co-ordinates for touch dispatching
* caches matrices and supports transformation short cuts to avoid more expensive calculations for display or input dispatch
This class is used to remove more of android input stacks InputWindowInfo and to move that into input::Surface instead.
It might need a better name.
Unmerged revisions
- 1473. By Andreas Pokorny
-
Adds a class describing a co-ordinate transformation
geometry:
:Transformation describes a combination of scaling, translation and rotation. Rotation is limited to rotation around the center of the given object. In an upcoming change this class should be used to describe the position of a surface in a scene, and thus also used to do co-ordinate transformations for hit testing and input dispatching.
The transformation is storesd in a way that trivial cases can be detected, and that tranformation parameters can be read and changed.
FAILED: Continuous integration, rev:1473 /code.launchpad .net/~andreas- pokorny/ mir/add- geometry- transformation/ +merge/ 211733/ +edit-commit- message
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
http:// jenkins. qa.ubuntu. com/job/ mir-team- mir-development -branch- ci/1111/ jenkins. qa.ubuntu. com/job/ mir-android- trusty- i386-build/ 1298 jenkins. qa.ubuntu. com/job/ mir-clang- trusty- amd64-build/ 1296 jenkins. qa.ubuntu. com/job/ mir-mediumtests -trusty- touch/878 jenkins. qa.ubuntu. com/job/ mir-team- mir-development -branch- trusty- amd64-ci/ 843 jenkins. qa.ubuntu. com/job/ mir-team- mir-development -branch- trusty- amd64-ci/ 843/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mir-team- mir-development -branch- trusty- armhf-ci/ 848 jenkins. qa.ubuntu. com/job/ mir-team- mir-development -branch- trusty- armhf-ci/ 848/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mir-mediumtests -builder- trusty- armhf/879 jenkins. qa.ubuntu. com/job/ mir-mediumtests -builder- trusty- armhf/879/ artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mir-mediumtests -runner- mako/821 s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 4992
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/mir- team-mir- development- branch- ci/1111/ rebuild
http://