Mir

Merge lp://qastaging/~albaguirre/mir/minimize-1498550 into lp://qastaging/mir

Proposed by Alberto Aguirre
Status: Merged
Approved by: Alberto Aguirre
Approved revision: no longer in the source branch.
Merged at revision: 2971
Proposed branch: lp://qastaging/~albaguirre/mir/minimize-1498550
Merge into: lp://qastaging/mir
Diff against target: 220 lines (+64/-27)
7 files modified
src/platforms/android/server/display.cpp (+0/-1)
src/platforms/android/server/display_disconnected_exception.h (+41/-0)
src/platforms/android/server/display_group.cpp (+4/-13)
src/platforms/android/server/display_group.h (+0/-2)
src/platforms/android/server/real_hwc_wrapper.cpp (+14/-1)
src/platforms/android/server/real_hwc_wrapper.h (+2/-0)
tests/unit-tests/graphics/android/test_display_group.cpp (+3/-10)
To merge this branch: bzr merge lp://qastaging/~albaguirre/mir/minimize-1498550
Reviewer Review Type Date Requested Status
Alan Griffiths Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+272167@code.qastaging.launchpad.net

Commit message

Query HWC for display connection if hwc->set fails.

Avoid using hotplug events to ignore commit errors; instead have the wrapper query the external display connection status and issue a DisplayDisconnectedException in such cases. The DisplayGroup can then choose to ignore that specific exception.

This only minimizes the occurences of lp:1498550, as there are still situations in which hwc->set fails due to unplugging the external display but hwc still reports the display as connected. The only recovery in this situation seems to be to tear down the compositor thread and recreate it as it happens when a display configuration occurs.

Description of the change

This only minimizes the occurences of lp:1498550, as there are still situations in which hwc->set fails due to unplugging the external display but hwc still reports the display as connected. The only recovery in this situation seems to be to tear down the compositor thread and recreate it as it happens when a display configuration occurs.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alberto Aguirre (albaguirre) wrote :

^--
"/usr/include/EGL/eglplatform.h:100:35: fatal error: android/native_window.h: No such file or directory"

Ummm.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Seems reasonable. (But not "obviously correct".)

review: Approve

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