display: update SetColorModeWithRenderIntent for virtual display
virtual display do not support color modes.
Change-Id: Ibf30ceaaba196af3e045f0e098e70ea7dc22400b
CRs-Fixed: 3171454
diff --git a/composer/hwc_display_virtual.cpp b/composer/hwc_display_virtual.cpp
index b1c1a1f..23153ce 100644
--- a/composer/hwc_display_virtual.cpp
+++ b/composer/hwc_display_virtual.cpp
@@ -201,4 +201,8 @@
return HWC2::Error::None;
}
+HWC2::Error HWCDisplayVirtual::SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent) {
+ return HWC2::Error::None;
+}
+
} // namespace sdm
diff --git a/composer/hwc_display_virtual.h b/composer/hwc_display_virtual.h
index b75e263..a7db0ed 100644
--- a/composer/hwc_display_virtual.h
+++ b/composer/hwc_display_virtual.h
@@ -51,6 +51,7 @@
int32_t format, CwbConfig &cwb_config);
virtual HWC2::Error GetDisplayType(int32_t *out_type);
virtual HWC2::Error SetColorMode(ColorMode mode);
+ virtual HWC2::Error SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent);
virtual HWC2::Error SetOutputBuffer(buffer_handle_t buf, shared_ptr<Fence> release_fence);
virtual HWC2::Error DumpVDSBuffer();
bool NeedsGPUBypass();