diff options
author | Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> | 2018-03-27 15:52:02 +0100 |
---|---|---|
committer | Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> | 2018-07-13 15:36:42 +0100 |
commit | c54635874b30efee98c7dd309cb54a8756a2094c (patch) | |
tree | 25439229e743f3a341b964f3b755a3776d171ef8 /drmhwctwo.h | |
parent | 0f5abd797b74aa27a80ddf84218a6457a203dcb8 (diff) | |
download | drm_hwcomposer-c54635874b30efee98c7dd309cb54a8756a2094c.tar.gz |
drm_hwcomposer: Add resource manager support
Add a resource manager class that is responsible for detecting all
kms devices and allocates unique display numbers for every detected
display.
This is controlled by the value of hwc.drm.device property, if it ends
with a %, it will try to open minor devices until an error is detected.
E.g: /dev/dri/card%
Additionally, this will be used for finding an available writeback
connector that will be used for the flattening of the currently
displayed scene.
Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
Diffstat (limited to 'drmhwctwo.h')
-rw-r--r-- | drmhwctwo.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drmhwctwo.h b/drmhwctwo.h index 33c688c..b65d37d 100644 --- a/drmhwctwo.h +++ b/drmhwctwo.h @@ -16,8 +16,8 @@ #include "drmdisplaycompositor.h" #include "drmhwcomposer.h" -#include "drmdevice.h" #include "platform.h" +#include "resourcemanager.h" #include "vsyncworker.h" #include <hardware/hwcomposer2.h> @@ -261,8 +261,7 @@ class DrmHwcTwo : public hwc2_device_t { HWC2::Error RegisterCallback(int32_t descriptor, hwc2_callback_data_t data, hwc2_function_pointer_t function); - DrmDevice drm_; - std::shared_ptr<Importer> importer_; // Shared with HwcDisplay + ResourceManager resource_manager_; std::map<hwc2_display_t, HwcDisplay> displays_; std::map<HWC2::Callback, HwcCallback> callbacks_; }; |