summaryrefslogtreecommitdiff
path: root/platformdrmgeneric.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platformdrmgeneric.cpp')
-rw-r--r--platformdrmgeneric.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/platformdrmgeneric.cpp b/platformdrmgeneric.cpp
index 099a5d9..90ba0e2 100644
--- a/platformdrmgeneric.cpp
+++ b/platformdrmgeneric.cpp
@@ -134,4 +134,12 @@ int DrmGenericImporter::ReleaseBuffer(hwc_drm_bo_t *bo) {
}
return 0;
}
+
+#ifdef USE_DRM_GENERIC_IMPORTER
+std::unique_ptr<Planner> Planner::CreateInstance(DrmResources *) {
+ std::unique_ptr<Planner> planner(new Planner);
+ planner->AddStage<PlanStageGreedy>();
+ return planner;
+}
+#endif
}