Mir

Merge lp://qastaging/~kdub/mir/android-physical-size into lp://qastaging/mir

Proposed by Kevin DuBois
Status: Merged
Approved by: Kevin DuBois
Approved revision: no longer in the source branch.
Merged at revision: 2386
Proposed branch: lp://qastaging/~kdub/mir/android-physical-size
Merge into: lp://qastaging/mir
Diff against target: 131 lines (+43/-14)
2 files modified
src/platforms/android/server/hwc_blanking_control.cpp (+14/-1)
tests/unit-tests/graphics/android/test_hwc_configuration.cpp (+29/-13)
To merge this branch: bzr merge lp://qastaging/~kdub/mir/android-physical-size
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Chris Halse Rogers Approve
Daniel van Vugt Approve
Alan Griffiths Approve
Robert Carr (community) Approve
Review via email: mp+252338@code.qastaging.launchpad.net

Commit message

android: pass the reported physical size of the display from the driver to the rest of the mir system.

fixes: lp: #1430315

Description of the change

android: pass the reported physical size of the display from the driver to the rest of the mir system.

To post a comment you must log in.
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Mostly OK. But...

72 -TEST_F(HwcConfiguration, no_fpe_from_malformed_refresh)
73 +TEST_F(HwcConfiguration, no_fpe_from_malformed_refresh_or_dpi)

"no_fpe_from_malformed_refresh_or_dpi" is a bit hard to parse (especially as what the test does).

"no_fpe_or_dpi_from_malformed_refresh" is probably better, but breaks the "one test per condition" rule.

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Robert Carr (robertcarr) wrote :

LGTM

review: Approve
Revision history for this message
Kevin DuBois (kdub) wrote :

failure looks unrelated, filed: https://bugs.launchpad.net/mir/+bug/1430000

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Cool. If you can however, try using or extending "mir/geometry/length.h" instead of:

10 +int dpi_to_mm(uint32_t dpi, int pixel_num)

Suggest fixing, not needs fixing.

review: Needs Fixing
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

OK

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Francis Ginther (fginther) wrote :

The above http://jenkins.qa.ubuntu.com/job/mir-mediumtests-runner-mako/4560/console build was aborted due to an unbootable image making it into the pipeline. The build has been restarted.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Chris Halse Rogers (raof) wrote :

Looks sensible, to the extent that Android allows you to be. Do you really have to calculate display size from DPI?

review: Approve
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Judging by the HWC API, yes it probably does need to be done this way.

Although in hindsight, this particular case allows for very little utilization of mir::geometry::Length.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Kevin DuBois (kdub) wrote :
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches