Merge lp://qastaging/~afrantzis/mir/buffer-native-type into lp://qastaging/mir
Status: | Rejected |
---|---|
Rejected by: | Alexandros Frantzis |
Proposed branch: | lp://qastaging/~afrantzis/mir/buffer-native-type |
Merge into: | lp://qastaging/mir |
Diff against target: |
175 lines (+45/-0) 12 files modified
include/platform/mir/graphics/buffer.h (+2/-0) src/platforms/android/server/buffer.cpp (+5/-0) src/platforms/android/server/buffer.h (+2/-0) src/platforms/mesa/server/common/gbm_buffer.cpp (+6/-0) src/platforms/mesa/server/common/gbm_buffer.h (+2/-0) src/platforms/mesa/server/common/shm_buffer.cpp (+6/-0) src/platforms/mesa/server/common/shm_buffer.h (+1/-0) src/server/compositor/temporary_buffers.cpp (+5/-0) src/server/compositor/temporary_buffers.h (+1/-0) tests/include/mir/test/doubles/mock_buffer.h (+1/-0) tests/include/mir/test/doubles/stub_buffer.h (+5/-0) tests/unit-tests/compositor/test_temporary_buffers.cpp (+9/-0) |
To merge this branch: | bzr merge lp://qastaging/~afrantzis/mir/buffer-native-type |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Kevin DuBois (community) | Needs Fixing | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email:
|
Commit message
platform: Introduce the Buffer:
Description of the change
platform: Introduce the Buffer:
This MP introduces the Buffer:
To get an idea of how this is going to be used see:
https:/
Some return types that could have been used, and my reasons for not using them:
void*: It removes the option of dynamic_cast-ing
a new NativeBufferType class: As mentioned above, native_type() is just a workaround to get access to the original type in the presence of wrapping. If we didn't have wrapping we would just cast the original mg::Buffer directly anyway (i.e. we wouldn't have a special base type). Perhaps as we implement more platform/renderers we will find reasons to revisit this decision, but I don't see a need for a special base class at this point.
Unmerged revisions
- 2880. By Alexandros Frantzis
-
platform: Introduce Buffer:
:native_ type() method
PASSED: Continuous integration, rev:2880 jenkins. qa.ubuntu. com/job/ mir-ci/ 4684/ jenkins. qa.ubuntu. com/job/ mir-android- vivid-i386- build/3682 s-jenkins. ubuntu- ci:8080/ job/mir- clang-ts- vivid-amd64- build/103 jenkins. qa.ubuntu. com/job/ mir-clang- vivid-amd64- build/2593 jenkins. qa.ubuntu. com/job/ mir-mediumtests -vivid- touch/3632 jenkins. qa.ubuntu. com/job/ mir-wily- amd64-ci/ 833 jenkins. qa.ubuntu. com/job/ mir-wily- amd64-ci/ 833/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mir-mediumtests -builder- vivid-armhf/ 3632 jenkins. qa.ubuntu. com/job/ mir-mediumtests -builder- vivid-armhf/ 3632/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mir-mediumtests -runner- mako/6401 s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 22844
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: 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- ci/4684/ rebuild
http://