diff options
author | Ady Abraham <adyabr@google.com> | 2021-12-21 14:10:37 -0800 |
---|---|---|
committer | Ady Abraham <adyabr@google.com> | 2021-12-21 14:12:18 -0800 |
commit | 169defd014b8d5ea2e424c8c80ea1b53a906199d (patch) | |
tree | 4081681d300cea8e2f75d56d85b42fbdfce2e8cf /hwc3/ComposerCommandEngine.cpp | |
parent | 139c5539d48b14df34ab4aabc8fbd22487ad56f6 (diff) |
hwc3: DisplayCommand.colorTransform is just a matrix
Remove the hint from DisplayCommand.colorTransform as currently
we only use ColorTransform::IDENTITY and ColorTransform::ARBITRARY_MATRIX,
which both can be expressed using a matrix.
Bug: 208879711
Test: VTS
Change-Id: If35d0f1dcc17983d75adb95d63b423799cce064a
Diffstat (limited to 'hwc3/ComposerCommandEngine.cpp')
-rw-r--r-- | hwc3/ComposerCommandEngine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hwc3/ComposerCommandEngine.cpp b/hwc3/ComposerCommandEngine.cpp index cd4925a..b272172 100644 --- a/hwc3/ComposerCommandEngine.cpp +++ b/hwc3/ComposerCommandEngine.cpp @@ -68,7 +68,7 @@ void ComposerCommandEngine::dispatchDisplayCommand(const DisplayCommand& command dispatchLayerCommand(command.display, layerCmd); } - DISPATCH_DISPLAY_COMMAND(command, colorTransform, SetColorTransform); + DISPATCH_DISPLAY_COMMAND(command, colorTransformMatrix, SetColorTransform); DISPATCH_DISPLAY_COMMAND(command, clientTarget, SetClientTarget); DISPATCH_DISPLAY_COMMAND(command, virtualDisplayOutputBuffer, SetOutputBuffer); // TODO: (b/196171661) SDR & HDR blending @@ -128,8 +128,8 @@ int32_t ComposerCommandEngine::executeValidateDisplayInternal(int64_t display) { } void ComposerCommandEngine::executeSetColorTransform(int64_t display, - const ColorTransformPayload& command) { - auto err = mHal->setColorTransform(display, command.matrix, command.hint); + const std::vector<float>& matrix) { + auto err = mHal->setColorTransform(display, matrix); if (err) { LOG(ERROR) << __func__ << ": err " << err; mWriter->setError(mCommandIndex, err); |