diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2023-08-25 08:48:38 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-08-25 08:48:38 +0000 |
commit | 217838a1d1cb72def2e0a9b7479e8cb2621b5b06 (patch) | |
tree | 2e5b56a2af698989fb786a3120be9d7901575323 | |
parent | cb5abc1fd8dcb2c028dfb08a7b908f0fad6c65ca (diff) | |
parent | 8831d29ce08c9af32d14bec9d799867f65513b27 (diff) | |
download | gs101-217838a1d1cb72def2e0a9b7479e8cb2621b5b06.tar.gz |
Merge "libhwc2.1: Add HistogramController class" into udc-qpr-dev am: f3d0c5aaae am: 8831d29ce0
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/graphics/gs101/+/23667867
Change-Id: I990a71d5967a7ed7eae5cee8c18af7b7738a8ecf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | libhwc2.1/Android.mk | 1 | ||||
-rw-r--r-- | libhwc2.1/libdevice/HistogramController.cpp | 21 | ||||
-rw-r--r-- | libhwc2.1/libdevice/HistogramController.h | 23 |
3 files changed, 45 insertions, 0 deletions
diff --git a/libhwc2.1/Android.mk b/libhwc2.1/Android.mk index de43986..a04375b 100644 --- a/libhwc2.1/Android.mk +++ b/libhwc2.1/Android.mk @@ -15,6 +15,7 @@ LOCAL_SRC_FILES += \ ../../$(TARGET_BOARD_PLATFORM)/libhwc2.1/libcolormanager/DisplayColorModule.cpp \ ../../$(TARGET_BOARD_PLATFORM)/libhwc2.1/libdevice/ExynosDeviceModule.cpp \ + ../../$(TARGET_BOARD_PLATFORM)/libhwc2.1/libdevice/HistogramController.cpp \ ../../$(TARGET_BOARD_PLATFORM)/libhwc2.1/libmaindisplay/ExynosPrimaryDisplayModule.cpp \ ../../$(TARGET_BOARD_PLATFORM)/libhwc2.1/libresource/ExynosMPPModule.cpp \ ../../$(TARGET_BOARD_PLATFORM)/libhwc2.1/libresource/ExynosResourceManagerModule.cpp \ diff --git a/libhwc2.1/libdevice/HistogramController.cpp b/libhwc2.1/libdevice/HistogramController.cpp new file mode 100644 index 0000000..137fd61 --- /dev/null +++ b/libhwc2.1/libdevice/HistogramController.cpp @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2023 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "HistogramController.h" + +void HistogramController::initSupportSamplePosList() { + mHistogramCapability.supportSamplePosList.push_back(HistogramSamplePos::POST_POSTPROC); +} diff --git a/libhwc2.1/libdevice/HistogramController.h b/libhwc2.1/libdevice/HistogramController.h new file mode 100644 index 0000000..988e6e3 --- /dev/null +++ b/libhwc2.1/libdevice/HistogramController.h @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2023 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "HistogramDevice.h" + +class HistogramController : public HistogramDevice { +public: + HistogramController(ExynosDisplay *display) : HistogramDevice(display, 1, {}) {} + virtual void initSupportSamplePosList() override; +}; |