summaryrefslogtreecommitdiff
path: root/hwc3/ComposerClient.cpp
diff options
context:
space:
mode:
authorLong Ling <longling@google.com>2021-11-19 14:52:31 -0800
committerLong Ling <longling@google.com>2021-12-02 20:39:28 -0800
commit9fa65beecba6ecb4bc93905ad7bc567abe9acaf8 (patch)
tree2a6c96f5f03d7b56fedb2e27f04ba4d72ae4d7ea /hwc3/ComposerClient.cpp
parente902910fb5af2b94875024b1f3b551d4e7736452 (diff)
hwc3: remove message queue
Bug: 206117357 Change-Id: Iec7aa67aa09e1866f30a89191d0359a0da7eaa52
Diffstat (limited to 'hwc3/ComposerClient.cpp')
-rw-r--r--hwc3/ComposerClient.cpp27
1 files changed, 5 insertions, 22 deletions
diff --git a/hwc3/ComposerClient.cpp b/hwc3/ComposerClient.cpp
index 8927b08..c0ed7fd 100644
--- a/hwc3/ComposerClient.cpp
+++ b/hwc3/ComposerClient.cpp
@@ -106,12 +106,11 @@ ndk::ScopedAStatus ComposerClient::destroyVirtualDisplay(int64_t display) {
return TO_BINDER_STATUS(err);
}
-ndk::ScopedAStatus ComposerClient::executeCommands(int32_t inLength,
- const std::vector<AidlNativeHandle>& inHandles,
- ExecuteCommandsStatus* status) {
+ndk::ScopedAStatus ComposerClient::executeCommands(
+ const std::vector<command::CommandPayload>& commands,
+ std::vector<command::CommandResultPayload>* results) {
DEBUG_FUNC();
- std::lock_guard<std::mutex> lock(mCommandEngineMutex);
- auto err = mCommandEngine->execute(inLength, inHandles, status);
+ auto err = mCommandEngine->execute(commands, results);
mCommandEngine->reset();
return TO_BINDER_STATUS(err);
}
@@ -241,14 +240,6 @@ ndk::ScopedAStatus ComposerClient::getMaxVirtualDisplayCount(int32_t* count) {
return TO_BINDER_STATUS(err);
}
-ndk::ScopedAStatus ComposerClient::getOutputCommandQueue(
- MQDescriptor<int32_t, SynchronizedReadWrite>* descriptor) {
- DEBUG_FUNC();
- std::lock_guard<std::mutex> lock(mCommandEngineMutex);
- mCommandEngine->getOutputMQDescriptor(descriptor);
- return ndk::ScopedAStatus::ok();
-}
-
ndk::ScopedAStatus ComposerClient::getPerFrameMetadataKeys(int64_t display,
std::vector<PerFrameMetadataKey>* keys) {
DEBUG_FUNC();
@@ -345,14 +336,6 @@ ndk::ScopedAStatus ComposerClient::setDisplayedContentSamplingEnabled(
return TO_BINDER_STATUS(err);
}
-ndk::ScopedAStatus ComposerClient::setInputCommandQueue(
- const MQDescriptor<int32_t, SynchronizedReadWrite>& descriptor) {
- DEBUG_FUNC();
- std::lock_guard<std::mutex> lock(mCommandEngineMutex);
- auto err = mCommandEngine->setInputMQDescriptor(descriptor) ? 0 : EX_NO_RESOURCES;
- return TO_BINDER_STATUS(err);
-}
-
ndk::ScopedAStatus ComposerClient::setPowerMode(int64_t display, PowerMode mode) {
DEBUG_FUNC();
auto err = mHal->setPowerMode(display, mode);
@@ -521,7 +504,7 @@ void ComposerClient::destroyResources() {
std::vector<Composition> compositionTypes;
uint32_t displayRequestMask = 0;
std::vector<int64_t> requestedLayers;
- std::vector<uint32_t> requestMasks;
+ std::vector<int32_t> requestMasks;
ClientTargetProperty clientTargetProperty;
mHal->validateDisplay(display, &changedLayers, &compositionTypes, &displayRequestMask,
&requestedLayers, &requestMasks, &clientTargetProperty);