summaryrefslogtreecommitdiff
path: root/drmresources.h
diff options
context:
space:
mode:
authorSean Paul <seanpaul@chromium.org>2015-07-28 14:15:42 -0400
committerSean Paul <seanpaul@chromium.org>2016-03-24 16:36:44 -0400
commit047b9b2484b4e68741df2cb522915f968c013373 (patch)
treeb4a63f62b16646fe87bd73c6bee5efca4c17d2e2 /drmresources.h
parent538a375097b7df59f8852997f9dada0bde86b328 (diff)
drm_hwcomposer: Add DrmEventListener worker
This patch adds a worker which listens to drm events. If the drm event has a handler associated with it, the listener will call the handler. BUG=chrome-os-partner:41682 TEST=Tested on ryu with DP Change-Id: I5d691d191425604766a00be3e72111095d025d06 Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'drmresources.h')
-rw-r--r--drmresources.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drmresources.h b/drmresources.h
index 6716807..64e6b57 100644
--- a/drmresources.h
+++ b/drmresources.h
@@ -21,6 +21,7 @@
#include "drmconnector.h"
#include "drmcrtc.h"
#include "drmencoder.h"
+#include "drmeventlistener.h"
#include "drmplane.h"
#include <stdint.h>
@@ -30,6 +31,7 @@ namespace android {
class DrmResources {
public:
DrmResources();
+ ~DrmResources();
int Init();
@@ -49,6 +51,7 @@ class DrmResources {
DrmCrtc *GetCrtcForDisplay(int display) const;
DrmPlane *GetPlane(uint32_t id) const;
DrmCompositor *compositor();
+ DrmEventListener *event_listener();
int GetPlaneProperty(const DrmPlane &plane, const char *prop_name,
DrmProperty *property);
@@ -79,6 +82,7 @@ class DrmResources {
std::vector<std::unique_ptr<DrmCrtc>> crtcs_;
std::vector<std::unique_ptr<DrmPlane>> planes_;
DrmCompositor compositor_;
+ DrmEventListener event_listener_;
};
}