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/drmcrtc.h b/drmcrtc.h
index c5a5599..3e17abd 100644
--- a/drmcrtc.h
+++ b/drmcrtc.h
@@ -25,11 +25,11 @@
namespace android {
-class DrmResources;
+class DrmDevice;
class DrmCrtc {
public:
- DrmCrtc(DrmResources *drm, drmModeCrtcPtr c, unsigned pipe);
+ DrmCrtc(DrmDevice *drm, drmModeCrtcPtr c, unsigned pipe);
DrmCrtc(const DrmCrtc &) = delete;
DrmCrtc &operator=(const DrmCrtc &) = delete;
@@ -48,7 +48,7 @@
const DrmProperty &out_fence_ptr_property() const;
private:
- DrmResources *drm_;
+ DrmDevice *drm_;
uint32_t id_;
unsigned pipe_;