diff options
Diffstat (limited to 'composer/QtiComposerCommandBuffer.h')
-rw-r--r-- | composer/QtiComposerCommandBuffer.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/composer/QtiComposerCommandBuffer.h b/composer/QtiComposerCommandBuffer.h index ab1dce72..e9526833 100644 --- a/composer/QtiComposerCommandBuffer.h +++ b/composer/QtiComposerCommandBuffer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2019-2021, The Linux Foundation. All rights reserved. * Not a Contribution. * * Copyright (C) 2017 The Android Open Source Project @@ -504,6 +504,17 @@ class CommandWriter { endCommand(); } + // Commands from ::android::hardware::graphics::composer::V2_4::IComposerClient follow. + static constexpr uint16_t kSetClientTargetPropertyLength = 2; + void setClientTargetProperty( + const IQtiComposerClient::ClientTargetProperty& clientTargetProperty) { + beginCommand(IQtiComposerClient::Command::SET_CLIENT_TARGET_PROPERTY, + kSetClientTargetPropertyLength); + writeSigned(static_cast<int32_t>(clientTargetProperty.pixelFormat)); + writeSigned(static_cast<int32_t>(clientTargetProperty.dataspace)); + endCommand(); + } + protected: // Commands from ::android::hardware::graphics::composer::V2_1::IComposerClient follow. void beginCommand(IQtiComposerClient::Command command, uint16_t length) { |