diff options
author | Leo Chen <yinchiuan@google.com> | 2023-10-06 08:14:21 +0000 |
---|---|---|
committer | Leo Chen <yinchiuan@google.com> | 2023-10-06 08:14:21 +0000 |
commit | 61ab65c104a75f0e09e34bad4356791a2c901914 (patch) | |
tree | b6a14dddaafef0829b33526d18c1ef7d7def5357 | |
parent | d9e834bf324c04d1ee67b790809b2d4ad1e8c9e8 (diff) | |
download | zuma-61ab65c104a75f0e09e34bad4356791a2c901914.tar.gz |
libhwc2.1: Apply the clang-format for HistogramController
Bug: 299410182
Test: Build pass
Change-Id: Ic1ddf8cc3c08b3b9a3c5b35f337d97bed2cdbc34
Signed-off-by: Leo Chen <yinchiuan@google.com>
-rw-r--r-- | libhwc2.1/libdevice/HistogramController.cpp | 18 | ||||
-rw-r--r-- | libhwc2.1/libdevice/HistogramController.h | 10 |
2 files changed, 14 insertions, 14 deletions
diff --git a/libhwc2.1/libdevice/HistogramController.cpp b/libhwc2.1/libdevice/HistogramController.cpp index 30b0d5d..ac616fb 100644 --- a/libhwc2.1/libdevice/HistogramController.cpp +++ b/libhwc2.1/libdevice/HistogramController.cpp @@ -18,12 +18,12 @@ // TODO: b/295990513 - Remove the if defined after kernel prebuilts are merged. #if defined(EXYNOS_HISTOGRAM_CHANNEL_REQUEST) -int HistogramController::createHistogramDrmConfigLocked(const ChannelInfo &channel, - std::shared_ptr<void> &configPtr, - size_t &length) const { +int HistogramController::createHistogramDrmConfigLocked(const ChannelInfo& channel, + std::shared_ptr<void>& configPtr, + size_t& length) const { configPtr = std::make_shared<struct histogram_channel_config>(); - struct histogram_channel_config *channelConfig = - (struct histogram_channel_config *)configPtr.get(); + struct histogram_channel_config* channelConfig = + (struct histogram_channel_config*)configPtr.get(); if (channelConfig == nullptr) { ALOGE("%s: histogram failed to allocate histogram_channel_config", __func__); @@ -46,11 +46,11 @@ int HistogramController::createHistogramDrmConfigLocked(const ChannelInfo &chann return NO_ERROR; } -int HistogramController::parseDrmEvent(void *event, uint8_t &channelId, char16_t *&buffer) const { - struct exynos_drm_histogram_channel_event *histogram_channel_event = - (struct exynos_drm_histogram_channel_event *)event; +int HistogramController::parseDrmEvent(void* event, uint8_t& channelId, char16_t*& buffer) const { + struct exynos_drm_histogram_channel_event* histogram_channel_event = + (struct exynos_drm_histogram_channel_event*)event; channelId = histogram_channel_event->hist_id; - buffer = (char16_t *)&histogram_channel_event->bins; + buffer = (char16_t*)&histogram_channel_event->bins; return NO_ERROR; } #endif diff --git a/libhwc2.1/libdevice/HistogramController.h b/libhwc2.1/libdevice/HistogramController.h index 0cfee0e..224d19e 100644 --- a/libhwc2.1/libdevice/HistogramController.h +++ b/libhwc2.1/libdevice/HistogramController.h @@ -18,13 +18,13 @@ class HistogramController : public HistogramDevice { public: - HistogramController(ExynosDisplay *display) : HistogramDevice(display, 4, {3}) {} + HistogramController(ExynosDisplay* display) : HistogramDevice(display, 4, {3}) {} // TODO: b/295990513 - Remove the if defined after kernel prebuilts are merged. #if defined(EXYNOS_HISTOGRAM_CHANNEL_REQUEST) - virtual int createHistogramDrmConfigLocked(const ChannelInfo &channel, - std::shared_ptr<void> &configPtr, - size_t &length) const override + virtual int createHistogramDrmConfigLocked(const ChannelInfo& channel, + std::shared_ptr<void>& configPtr, + size_t& length) const override REQUIRES(channel.channelInfoMutex); - virtual int parseDrmEvent(void *event, uint8_t &channelId, char16_t *&buffer) const override; + virtual int parseDrmEvent(void* event, uint8_t& channelId, char16_t*& buffer) const override; #endif }; |