diff options
author | Peiyong Lin <lpy@google.com> | 2020-01-08 15:33:30 -0800 |
---|---|---|
committer | Peiyong Lin <lpy@google.com> | 2020-01-16 10:05:54 -0800 |
commit | bc51e0859645e71c399059e5db745b6e80e289f2 (patch) | |
tree | 83ef19c5443b61ca5cbdf29059ae4b244076e8a1 /graphics/composer/2.1/utils/command-buffer/include/composer-command-buffer | |
parent | eea8c32428805604f61b4738cb13edddae0cf709 (diff) |
Add getClientTargetProperty API entry.
getClientTargetProperty will give hardware composer the ability to request some
properties of the client target that hardware composer wants. Prior to this
API, the client will does its best to produce the client target of which the
properties are pretty much fixed.
BUG: b/145968912
Test: mmma -j32 hardware/interfaces/graphics/composer/2.4/
Change-Id: I055f46b1eeba1d3e20d6a92a9d50a83e0f1ee694
Diffstat (limited to 'graphics/composer/2.1/utils/command-buffer/include/composer-command-buffer')
-rw-r--r-- | graphics/composer/2.1/utils/command-buffer/include/composer-command-buffer/2.1/ComposerCommandBuffer.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/graphics/composer/2.1/utils/command-buffer/include/composer-command-buffer/2.1/ComposerCommandBuffer.h b/graphics/composer/2.1/utils/command-buffer/include/composer-command-buffer/2.1/ComposerCommandBuffer.h index 64ed4f3c5a..499d3b96e3 100644 --- a/graphics/composer/2.1/utils/command-buffer/include/composer-command-buffer/2.1/ComposerCommandBuffer.h +++ b/graphics/composer/2.1/utils/command-buffer/include/composer-command-buffer/2.1/ComposerCommandBuffer.h @@ -626,9 +626,15 @@ class CommandReaderBase { } protected: + template <typename T> + bool beginCommand(T* outCommand, uint16_t* outLength) { + return beginCommandBase(reinterpret_cast<IComposerClient::Command*>(outCommand), + outLength); + } + bool isEmpty() const { return (mDataRead >= mDataSize); } - bool beginCommand(IComposerClient::Command* outCommand, uint16_t* outLength) { + bool beginCommandBase(IComposerClient::Command* outCommand, uint16_t* outLength) { if (mCommandEnd) { LOG_FATAL("endCommand was not called for last command"); } |