Mir

Merge lp:~andreas-pokorny/mir/fix-1272041 into lp:mir

Proposed by Andreas Pokorny
Status: Merged
Approved by: Alan Griffiths
Approved revision: no longer in the source branch.
Merged at revision: 1353
Proposed branch: lp:~andreas-pokorny/mir/fix-1272041
Merge into: lp:mir
Diff against target: 11 lines (+0/-1)
1 file modified
src/platform/graphics/android/android_display_configuration.cpp (+0/-1)
To merge this branch: bzr merge lp:~andreas-pokorny/mir/fix-1272041
Reviewer Review Type Date Requested Status
Alan Griffiths Approve
Daniel van Vugt Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+202959@code.launchpad.net

Commit message

Workaround for N4 nested server issue. This change removes mir_pixel_format_bgr_888 - HAL_PIXEL_FORMAT_RGB_888 from the list of supported pixel formats on android. (LP:#1272041)

Description of the change

Workaround for N4 nested server issue. This change removes mir_pixel_format_bgr_888 & HAL_PIXEL_FORMAT_RGB_888 from the list of supported pixel formats on android.

To post a comment you must log in.
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 :

Is it a problem that ABGR comes before XBGR? Or will code elsewhere still prioritize XBGR first?

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

Regardless of the answer to my question, this won't make it any worse :)

review: Approve
Revision history for this message
Andreas Pokorny (andreas-pokorny) wrote :

> Is it a problem that ABGR comes before XBGR? Or will code elsewhere still
> prioritize XBGR first?

Yes we have unit tests that test the default display configuration policies with cases like that. I.e. unless the current format is not already opaque it picks the first opaque format form the list of available ones. Hence when you really want to go for transparency you have to decorate/replace it and fore the format you want.

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

OK as workaround. But it seems like we should not be hard coding the supported pixel formats.

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

I'm working getting the android display configuration a bit cleaner, and we should pick up the actual display format instead of just hardcoding

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/platform/graphics/android/android_display_configuration.cpp'
2--- src/platform/graphics/android/android_display_configuration.cpp 2014-01-14 07:16:04 +0000
3+++ src/platform/graphics/android/android_display_configuration.cpp 2014-01-23 22:13:35 +0000
4@@ -26,7 +26,6 @@
5 mg::DisplayConfigurationOutputType::lvds,
6 {
7 mir_pixel_format_abgr_8888,
8- mir_pixel_format_bgr_888,
9 mir_pixel_format_xbgr_8888
10 },
11 {mg::DisplayConfigurationMode{display_size,0.0f}},

Subscribers

People subscribed via source and target branches