Merge lp://qastaging/~afrantzis/mir/client-surface-buffering-mode into lp://qastaging/mir
Proposed by
Alexandros Frantzis
Status: | Work in progress |
---|---|
Proposed branch: | lp://qastaging/~afrantzis/mir/client-surface-buffering-mode |
Merge into: | lp://qastaging/mir |
Diff against target: |
499 lines (+233/-12) 18 files modified
include/client/mir_toolkit/mir_surface.h (+8/-0) include/common/mir_toolkit/common.h (+7/-0) include/server/mir/scene/surface_creation_parameters.h (+1/-0) src/client/mir_surface.cpp (+2/-0) src/client/mir_surface.h (+1/-0) src/client/mir_surface_api.cpp (+6/-0) src/client/symbols.map (+1/-0) src/protobuf/mir_protobuf.proto (+4/-0) src/server/frontend/session_mediator.cpp (+1/-0) src/server/scene/surface_allocator.cpp (+10/-2) src/server/scene/surface_creation_parameters.cpp (+1/-0) tests/acceptance-tests/CMakeLists.txt (+1/-0) tests/acceptance-tests/test_client_surface_buffering_mode.cpp (+133/-0) tests/include/mir_test_doubles/null_display_sync_group.h (+19/-3) tests/include/mir_test_doubles/stub_display.h (+13/-6) tests/include/mir_test_framework/stub_server_platform_factory.h (+3/-0) tests/mir_test_framework/stub_server_platform_factory.cpp (+13/-0) tests/mir_test_framework/stubbed_graphics_platform.cpp (+9/-1) |
To merge this branch: | bzr merge lp://qastaging/~afrantzis/mir/client-surface-buffering-mode |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Carr (community) | Approve | ||
Chris Halse Rogers | Needs Information | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Kevin DuBois (community) | Needs Information | ||
Daniel van Vugt | Needs Fixing | ||
Alan Griffiths | Approve | ||
Review via email:
|
Commit message
client,server: Allow clients to specify the buffering mode for their surfaces
Description of the change
client,server: Allow clients to specify the buffering mode for their surfaces
This MP only allows setting the buffering mode at surface creation time. In the future it may be useful to also allow changing the buffering mode after creation time.
To post a comment you must log in.
Unmerged revisions
- 2491. By Alexandros Frantzis
-
client: Make mir_surface_
spec_set_ buffering_ mode symbol public - 2490. By Alexandros Frantzis
-
client,server: Allow clients to specify the buffering mode for their surface
89+bool mir_surface_ spec_set_ buffering_ mode(MirSurface Spec* spec, MirBufferingMode mode) _mode = mode;
90+{
91+ spec->buffering
92+ return true;
93+}
Possibly worth validating the buffering mode at this point and returning false if it is nonsense?