drm_hwcomposer: Implement getHdrCapabilities and getColorModes
Retrieve color and HDR information from the EDID.
Change-Id: I1aac27644d5c4fd5d5f295ca32b69ed69e94e0c6
Signed-off-by: Sasha McIntosh <sashamcintosh@google.com>
diff --git a/utils/EdidWrapper.h b/utils/EdidWrapper.h
index 867d1a0..30124d7 100644
--- a/utils/EdidWrapper.h
+++ b/utils/EdidWrapper.h
@@ -16,8 +16,6 @@
#pragma once
-#define LOG_TAG "drmhwc"
-
#if HAS_LIBDISPLAY_INFO
extern "C" {
#include <libdisplay-info/info.h>
@@ -26,8 +24,8 @@
#include <ui/GraphicTypes.h>
+#include "compositor/DisplayInfo.h"
#include "drm/DrmUnique.h"
-#include "utils/log.h"
namespace android {
@@ -47,6 +45,9 @@
const float * /*min_luminance*/) {
GetSupportedHdrTypes(types);
};
+ virtual void GetColorModes(std::vector<Colormode> &color_modes) {
+ color_modes.clear();
+ };
};
#if HAS_LIBDISPLAY_INFO
@@ -67,6 +68,8 @@
const float *max_average_luminance,
const float *min_luminance) override;
+ void GetColorModes(std::vector<Colormode> &color_modes) override;
+
private:
LibdisplayEdidWrapper(di_info *info) : info_(std::move(info)) {
}