Mir

Merge lp://qastaging/~andreas-pokorny/mir/add-display-configuration-output-assembly-to-display-device into lp://qastaging/mir

Proposed by Andreas Pokorny
Status: Rejected
Rejected by: Andreas Pokorny
Proposed branch: lp://qastaging/~andreas-pokorny/mir/add-display-configuration-output-assembly-to-display-device
Merge into: lp://qastaging/mir
Diff against target: 899 lines (+608/-23)
18 files modified
src/platform/graphics/android/CMakeLists.txt (+1/-0)
src/platform/graphics/android/display_configuration_utilities.cpp (+57/-0)
src/platform/graphics/android/display_configuration_utilities.h (+35/-0)
src/platform/graphics/android/display_device.h (+2/-0)
src/platform/graphics/android/fb_device.cpp (+18/-5)
src/platform/graphics/android/fb_device.h (+1/-0)
src/platform/graphics/android/hwc_device.cpp (+116/-0)
src/platform/graphics/android/hwc_device.h (+1/-0)
src/platform/graphics/android/hwc_fb_device.cpp (+9/-0)
src/platform/graphics/android/hwc_fb_device.h (+1/-0)
src/platform/graphics/android/hwc_wrapper.h (+13/-0)
src/platform/graphics/android/real_hwc_wrapper.cpp (+45/-0)
src/platform/graphics/android/real_hwc_wrapper.h (+2/-0)
tests/include/mir_test_doubles/mock_display_device.h (+1/-0)
tests/include/mir_test_doubles/mock_fb_hal_device.h (+11/-5)
tests/include/mir_test_doubles/mock_hwc_device_wrapper.h (+3/-0)
tests/unit-tests/graphics/android/test_fb_device.cpp (+46/-1)
tests/unit-tests/graphics/android/test_hwc_common_device.cpp (+246/-12)
To merge this branch: bzr merge lp://qastaging/~andreas-pokorny/mir/add-display-configuration-output-assembly-to-display-device
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Kevin DuBois (community) Needs Fixing
Review via email: mp+239978@code.qastaging.launchpad.net

Commit message

Add means to query display output configuration from DisplayDevice

This adds methods to DisplayDevice and HwcWrapper to assemble a DisplayConfigurationOutput using the fb and hwc interfaces and EGL. The code is largely borrowed from mir::graphics::android::Framebuffers. This change does not yet make mir::android::DisplayConfiguration use this code path.

Description of the change

Adds a method to query the output configuration for a hwc display. With this MP the code path is not yet in use, but just prepared.

To post a comment you must log in.
Revision history for this message
Kevin DuBois (kdub) wrote :

407 +++ src/platform/graphics/android/real_hwc_wrapper.cpp
This is supposed to be an adapter layer around the hwc interface. Its kept thin and mostly in terms of hwc types so that the logs can closely reflect the actual calls to the 3rd party code. This lets us collaborate more easily with vendors. It shouldn't be doing heavy lifting. The code that was added is a duplication of the code in framebuffers.cpp

77 +++ src/platform/graphics/android/display_configuration_utilities.h
given this would only be used by the fb device, it would probably be better to be in an anonymous namespace closer to the creation of the the fb_device.cpp file instead of in the two types of DisplayDevices that rely on the framebuffer device.

200 +#include <EGL/egl.h>
201 +#include <EGL/eglext.h>
I've gone through some pains to keep egl out of the displaydevice setup, would like to keep the egl stuff in the DisplayBuffer or the HwcFallbackRenderer

290 + for(auto config : configs)
const&

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

52 + 25.4f * float(device.width) / float(device.xdpi),
53 + 25.4f * float(device.height) / float(device.ydpi)
magic numbers

873 +TEST_F(HWC10Tests, display_configuration_matches_expectations)
847 +TEST_F(PostHWC10Tests, queries_egl_configuration)
introduction of new terminology with HWC10 and PostHWC10. In current code, hwc 1.0 is called HwcFbDevice, hwc 1.1+ is called HwcDevice.

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 :

Is this being reworked based on kdub's feedback?

Or should we review as is?

Unmerged revisions

2008. By Andreas Pokorny

Add means to query display output configuration from DisplayDevice

This adds a methods to DisplayDevice and HwcWrapper to assemble a
DisplayConfigurationOutput using the fb and hwc interfaces and EGL.
The code is largely borrowed from mir::graphics::android::Framebuffers.
This change does not yet make mir::android::DisplayConfiguration use this
code path.

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