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/drmconnector.h b/drmconnector.h
index 5601e06..99b89d5 100644
--- a/drmconnector.h
+++ b/drmconnector.h
@@ -27,11 +27,11 @@
namespace android {
-class DrmResources;
+class DrmDevice;
class DrmConnector {
public:
- DrmConnector(DrmResources *drm, drmModeConnectorPtr c,
+ DrmConnector(DrmDevice *drm, drmModeConnectorPtr c,
DrmEncoder *current_encoder,
std::vector<DrmEncoder *> &possible_encoders);
DrmConnector(const DrmProperty &) = delete;
@@ -71,7 +71,7 @@
uint32_t mm_height() const;
private:
- DrmResources *drm_;
+ DrmDevice *drm_;
uint32_t id_;
DrmEncoder *encoder_;