drm_hwcomposer: Rename DrmResources to DrmDevice
DrmDevice is a better name to reflect the fact that DrmResources/
DrmDevice can handle just one dri node.
Suggested here [1] by Sean Paul.
[1] https://lists.freedesktop.org/archives/dri-devel/2018-April/173290.html
Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
diff --git a/drmplane.cpp b/drmplane.cpp
index 4449256..051d591 100644
--- a/drmplane.cpp
+++ b/drmplane.cpp
@@ -16,8 +16,8 @@
#define LOG_TAG "hwc-drm-plane"
+#include "drmdevice.h"
#include "drmplane.h"
-#include "drmresources.h"
#include <cinttypes>
#include <errno.h>
@@ -28,7 +28,7 @@
namespace android {
-DrmPlane::DrmPlane(DrmResources *drm, drmModePlanePtr p)
+DrmPlane::DrmPlane(DrmDevice *drm, drmModePlanePtr p)
: drm_(drm), id_(p->plane_id), possible_crtc_mask_(p->possible_crtcs) {
}