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/platformdrmgeneric.h b/platformdrmgeneric.h
index 0339e1e..8701329 100644
--- a/platformdrmgeneric.h
+++ b/platformdrmgeneric.h
@@ -17,7 +17,7 @@
#ifndef ANDROID_PLATFORM_DRM_GENERIC_H_
#define ANDROID_PLATFORM_DRM_GENERIC_H_
-#include "drmresources.h"
+#include "drmdevice.h"
#include "platform.h"
#include <hardware/gralloc.h>
@@ -26,7 +26,7 @@
class DrmGenericImporter : public Importer {
public:
- DrmGenericImporter(DrmResources *drm);
+ DrmGenericImporter(DrmDevice *drm);
~DrmGenericImporter() override;
int Init();
@@ -36,8 +36,7 @@
uint32_t ConvertHalFormatToDrm(uint32_t hal_format);
private:
-
- DrmResources *drm_;
+ DrmDevice *drm_;
const gralloc_module_t *gralloc_;
};