drm_hwcomposer: Complete rename of DrmResources to DrmDevice
In AOSP/master, there was a structure renamed, so try to sync
AOSP/master's build fix change to freedesktop/master.
NOTE: I'm not sure how to best submit this, as the upstream
freedesktop/master may have users outside of AOSP/master. But
I'm not sure what devices on an official release are using
drm_hwc so it seems like this would be more useful then not.
Bug: 116154944
Test: builds
Change-Id: I244bd049afae6ba8310f6b6bf2d3b1ee2e891de3
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/platformminigbm.cpp b/platformminigbm.cpp
index 2040768..dce1d11 100644
--- a/platformminigbm.cpp
+++ b/platformminigbm.cpp
@@ -17,7 +17,7 @@
#define LOG_TAG "hwc-platform-drm-minigbm"
#include "platformminigbm.h"
-#include "drmresources.h"
+#include "drmdevice.h"
#include "platform.h"
#include <drm/drm_fourcc.h>
@@ -31,7 +31,7 @@
namespace android {
-Importer *Importer::CreateInstance(DrmResources *drm) {
+Importer *Importer::CreateInstance(DrmDevice *drm) {
DrmMinigbmImporter *importer = new DrmMinigbmImporter(drm);
if (!importer)
return NULL;
@@ -45,7 +45,7 @@
return importer;
}
-DrmMinigbmImporter::DrmMinigbmImporter(DrmResources *drm)
+DrmMinigbmImporter::DrmMinigbmImporter(DrmDevice *drm)
: DrmGenericImporter(drm), drm_(drm) {
}
@@ -100,7 +100,7 @@
return ret;
}
-std::unique_ptr<Planner> Planner::CreateInstance(DrmResources *) {
+std::unique_ptr<Planner> Planner::CreateInstance(DrmDevice *) {
std::unique_ptr<Planner> planner(new Planner);
planner->AddStage<PlanStageGreedy>();
return planner;