Merge lp:~alan-griffiths/mir/start-tidy-up-of-InputManager into lp:mir
| Status: | Merged |
|---|---|
| Approved by: | Cemil Azizoglu on 2016-03-08 |
| Approved revision: | 3360 |
| Merged at revision: | 3371 |
| Proposed branch: | lp:~alan-griffiths/mir/start-tidy-up-of-InputManager |
| Merge into: | lp:mir |
| Prerequisite: | lp:~alan-griffiths/mir/fix-1528110 |
| Diff against target: |
179 lines (+25/-22) 5 files modified
include/server/mir/input/input_manager.h (+3/-1) src/server/input/default_configuration.cpp (+2/-6) src/server/input/default_input_manager.cpp (+8/-3) src/server/input/default_input_manager.h (+10/-3) tests/unit-tests/input/test_default_input_manager.cpp (+2/-9) |
| To merge this branch: | bzr merge lp:~alan-griffiths/mir/start-tidy-up-of-InputManager |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Andreas Pokorny (community) | Abstain on 2016-03-04 | ||
| Mir CI Bot | continuous-integration | Approve on 2016-03-03 | |
| Cemil Azizoglu (community) | Approve on 2016-03-02 | ||
| Kevin DuBois (community) | 2016-03-02 | Approve on 2016-03-02 | |
|
Review via email:
|
|||
Commit Message
input: Make the input platform a dependency of DefaultInputManager
Description of the Change
input: Make the input platform a dependency of DefaultInputManager
the input platform should be a simple constructor dependency of InputManager, and there's no use case for adding platforms. There's no immediate need to break the mirserver API/ABI for this, so I've just deprecated InputManager:
| Daniel van Vugt (vanvugt) wrote : | # |
I have concerns about the prerequisite branch tho...
| Andreas Pokorny (andreas-pokorny) wrote : | # |
* Needs discussion *
I thought you would only remove probing of multiple possible platforms for now... avoiding the issues that we experience right now in specific startup cases. Issues that we have because we allow our probing to see very little of the server setup. I think this is still also a part that will change.
- 3360. By Alan Griffiths on 2016-03-03
| Alan Griffiths (alan-griffiths) wrote : | # |
> * Needs discussion *
> I thought you would only remove probing of multiple possible platforms for
> now... avoiding the issues that we experience right now in specific startup
> cases. Issues that we have because we allow our probing to see very little of
> the server setup. I think this is still also a part that will change.
We can change things as the need arrives. Meanwhile, I suggest having the simplest codebase that does the job.
| Mir CI Bot (mir-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:3360
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
| Andreas Pokorny (andreas-pokorny) wrote : | # |
> > * Needs discussion *
> > I thought you would only remove probing of multiple possible platforms for
> > now... avoiding the issues that we experience right now in specific startup
> > cases. Issues that we have because we allow our probing to see very little
> of
> > the server setup. I think this is still also a part that will change.
>
> We can change things as the need arrives. Meanwhile, I suggest having the
> simplest codebase that does the job.
I do agree to that point of view in many cases. In this case it does not seem to be a big simplification win. The main concern for me is that the sub-text of the MP reads like a decision to cut off those design options from the decision tree. I.e marking the method as deprecated..
| Alan Griffiths (alan-griffiths) wrote : | # |
> I do agree to that point of view in many cases. In this case it does not seem
> to be a big simplification win. The main concern for me is that the sub-text
> of the MP reads like a decision to cut off those design options from the
> decision tree. I.e marking the method as deprecated..
We're not cutting off a design option, we are /not committing/ to a design that works by "add_platform()".
When we know more about what needs to work we can use a different design, or reinstate the old one.

PASSED: Continuous integration, rev:3359 /mir-jenkins. ubuntu. com/job/ mir-ci/ 472/ /mir-jenkins. ubuntu. com/job/ build-mir/ 298 /mir-jenkins. ubuntu. com/job/ build-0- fetch/323 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= vivid+overlay/ 315 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= xenial/ 315 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= clang,platform= mesa,release= vivid+overlay/ 306 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= clang,platform= mesa,release= vivid+overlay/ 306/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= xenial/ 306 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= xenial/ 306/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= cross-armhf, compiler= gcc,platform= android, release= vivid+overlay/ 306 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= cross-armhf, compiler= gcc,platform= android, release= vivid+overlay/ 306/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= android, release= vivid+overlay/ 306 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= android, release= vivid+overlay/ 306/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= mesa,release= xenial/ 306 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= mesa,release= xenial/ 306/artifact/ output/ *zip*/output. zip
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild: /mir-jenkins. ubuntu. com/job/ mir-ci/ 472/rebuild
https:/