diff options
author | Long Ling <longling@google.com> | 2021-11-29 09:26:43 -0800 |
---|---|---|
committer | Long Ling <longling@google.com> | 2021-11-29 09:29:53 -0800 |
commit | acb781e749a32b9577457679e74893bf63abad47 (patch) | |
tree | 85c449acc5e5e36cc5e47bfb2d3f4b5bf4452b1b /hwc3/impl/HalImpl.cpp | |
parent | d432151d25b4e7bac73a7a4aae2ebd8f062c4a49 (diff) |
hwc3: return unit matrix for getDataspaceSaturationMatrix
Return unit matrix befor Pixel hwc makes use of dataspace saturation
matrix.
Bug: 207144199
Change-Id: If53db559694a790a4de4f4503e56e1a63bbc877c
Diffstat (limited to 'hwc3/impl/HalImpl.cpp')
-rw-r--r-- | hwc3/impl/HalImpl.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/hwc3/impl/HalImpl.cpp b/hwc3/impl/HalImpl.cpp index 4fbff7a..25c716d 100644 --- a/hwc3/impl/HalImpl.cpp +++ b/hwc3/impl/HalImpl.cpp @@ -266,8 +266,17 @@ int32_t HalImpl::getColorModes(int64_t display, std::vector<ColorMode>* outModes } int32_t HalImpl::getDataspaceSaturationMatrix([[maybe_unused]] common::Dataspace dataspace, - [[maybe_unused]] std::vector<float>* matrix) { - return HWC2_ERROR_UNSUPPORTED; + std::vector<float>* matrix) { + // Pixel HWC does not support dataspace saturation matrix, return unit matrix. + std::vector<float> unitMatrix = { + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f, + }; + + *matrix = std::move(unitMatrix); + return HWC2_ERROR_NONE; } int32_t HalImpl::getDisplayAttribute(int64_t display, int32_t config, |