summaryrefslogtreecommitdiff
path: root/hwc3/impl/HalImpl.cpp
diff options
context:
space:
mode:
authorAdy Abraham <adyabr@google.com>2021-12-20 16:34:25 -0800
committerAdy Abraham <adyabr@google.com>2021-12-21 23:09:55 +0000
commit55d6e2e01e13c2da279de61923ac3c38ac0100e1 (patch)
treec89f668291e7fcee423c3e05b505ef7303906d10 /hwc3/impl/HalImpl.cpp
parent28646f829b8784550c24dfe8ff95ef2c5169a1c4 (diff)
Remove GenericMetadata from composer3
There are no current users for GenericMetadata, so removing from composer 3. Bug: 209691612 Test: VTS Change-Id: Ie2d1787e0bb6c9bf08e55254f5697a7ec6112d2c
Diffstat (limited to 'hwc3/impl/HalImpl.cpp')
-rw-r--r--hwc3/impl/HalImpl.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/hwc3/impl/HalImpl.cpp b/hwc3/impl/HalImpl.cpp
index f79073b..e8fa567 100644
--- a/hwc3/impl/HalImpl.cpp
+++ b/hwc3/impl/HalImpl.cpp
@@ -424,26 +424,6 @@ int32_t HalImpl::getHdrCapabilities(int64_t display, HdrCapabilities* caps) {
return HWC2_ERROR_NONE;
}
-int32_t HalImpl::getLayerGenericMetadataKeys(std::vector<LayerGenericMetadataKey>* keys) {
- uint32_t keyLength = 0;
-
- // Only attempt to load the first 100 keys to avoid an infinite loop
- // if something goes wrong
- for (uint32_t index = 0; index < 100; ++index) {
- mDevice->getLayerGenericMetadataKey(index, &keyLength, nullptr, nullptr);
- if (keyLength == 0) {
- break;
- }
-
- LayerGenericMetadataKey key;
- key.name.resize(keyLength);
- mDevice->getLayerGenericMetadataKey(index, &keyLength, key.name.data(), &key.mandatory);
- keys->emplace_back(std::move(key));
- }
-
- return HWC2_ERROR_NONE;
-}
-
int32_t HalImpl::getMaxVirtualDisplayCount(int32_t* count) {
uint32_t hwcCount = mDevice->getMaxVirtualDisplayCount();
h2a::translate(hwcCount, *count);
@@ -741,12 +721,6 @@ int32_t HalImpl::setLayerFloatColor([[maybe_unused]] int64_t display,
return HWC2_ERROR_UNSUPPORTED;
}
-int32_t HalImpl::setLayerGenericMetadata([[maybe_unused]] int64_t display,
- [[maybe_unused]] int64_t layer,
- [[maybe_unused]] const GenericMetadata& metadata) {
- return HWC2_ERROR_UNSUPPORTED;
-}
-
int32_t HalImpl::setLayerPerFrameMetadata(int64_t display, int64_t layer,
const std::vector<std::optional<PerFrameMetadata>>& metadata) {
ExynosLayer *halLayer;