diff options
author | Leo Chen <yinchiuan@google.com> | 2023-10-25 06:55:04 +0000 |
---|---|---|
committer | Leo Chen <yinchiuan@google.com> | 2023-10-25 07:40:39 +0000 |
commit | c356eea6121f60185c72b10e0e68dcbfd6c3b97e (patch) | |
tree | 6bac61044c298b28d96bcf37c87a374f2c48738e | |
parent | f12140573261ffb9365ad221d6656b5df8e3e249 (diff) | |
download | gs201-c356eea6121f60185c72b10e0e68dcbfd6c3b97e.tar.gz |
libhwc2.1: initialize platform specific HistogramCapability
Bug: 299410182
Test: Build pass
Change-Id: Ibb36531011477b799619cb64655d142719a97ea8
Signed-off-by: Leo Chen <yinchiuan@google.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 | 1 |
3 files changed, 23 insertions, 0 deletions
diff --git a/libhwc2.1/Android.mk b/libhwc2.1/Android.mk index 20c85f0..9edcc70 100644 --- a/libhwc2.1/Android.mk +++ b/libhwc2.1/Android.mk @@ -15,6 +15,7 @@ LOCAL_SRC_FILES += \ ../../gs101/libhwc2.1/libcolormanager/DisplayColorModule.cpp \ ../../gs101/libhwc2.1/libdevice/ExynosDeviceModule.cpp \ + ../../gs201/libhwc2.1/libdevice/HistogramController.cpp \ ../../gs101/libhwc2.1/libmaindisplay/ExynosPrimaryDisplayModule.cpp \ ../../gs101/libhwc2.1/libresource/ExynosMPPModule.cpp \ ../../gs201/libhwc2.1/libresource/ExynosMPPModule.cpp \ diff --git a/libhwc2.1/libdevice/HistogramController.cpp b/libhwc2.1/libdevice/HistogramController.cpp new file mode 100644 index 0000000..f064b11 --- /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::initPlatformHistogramCapability() { + mHistogramCapability.supportSamplePosList.push_back(HistogramSamplePos::PRE_POSTPROC); +} diff --git a/libhwc2.1/libdevice/HistogramController.h b/libhwc2.1/libdevice/HistogramController.h index b9be3b8..fedeaa4 100644 --- a/libhwc2.1/libdevice/HistogramController.h +++ b/libhwc2.1/libdevice/HistogramController.h @@ -21,4 +21,5 @@ class HistogramController : public HistogramDevice { public: HistogramController(ExynosDisplay* display) : HistogramDevice(display, 1, {}) {} + virtual void initPlatformHistogramCapability() override; }; |