summaryrefslogtreecommitdiff
path: root/libhwc2.1/histogram_mediator.cpp
diff options
context:
space:
mode:
authorOleg Matcovschi <omatcovschi@google.com>2023-05-23 11:21:10 -0700
committerOleg Matcovschi <omatcovschi@google.com>2023-05-26 05:55:00 +0000
commit8c9370f42fc9414b9e1307140e3a0cce16d03c5c (patch)
treeac705dbf8ae81c2fda326f3dd93886dc6e057b9b /libhwc2.1/histogram_mediator.cpp
parent2a4e22ebcc9afeabdd953b5eb3f9b12e33433838 (diff)
libhwc2.1: histogram: pass parameters as references
Bug: 277948998 Bug: 261376040 Change-Id: I7021e0445e4b938b98eaa7dab54d5622ada2957b Merged-In: I7021e0445e4b938b98eaa7dab54d5622ada2957b Signed-off-by: Oleg Matcovschi <omatcovschi@google.com>
Diffstat (limited to 'libhwc2.1/histogram_mediator.cpp')
-rw-r--r--libhwc2.1/histogram_mediator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhwc2.1/histogram_mediator.cpp b/libhwc2.1/histogram_mediator.cpp
index 991b972..a09f579 100644
--- a/libhwc2.1/histogram_mediator.cpp
+++ b/libhwc2.1/histogram_mediator.cpp
@@ -93,7 +93,7 @@ int histogram::HistogramMediator::calculateThreshold(const RoiRect &roi) {
}
histogram::HistogramErrorCode histogram::HistogramMediator::setRoiWeightThreshold(
- const RoiRect roi, const Weight weight, const HistogramPos pos) {
+ const RoiRect &roi, const Weight &weight, const HistogramPos &pos) {
int threshold = calculateThreshold(roi);
mIDLHistogram->setHistogramROI((uint16_t)roi.left, (uint16_t)roi.top,
(uint16_t)(roi.right - roi.left),
@@ -118,7 +118,7 @@ histogram::HistogramErrorCode histogram::HistogramMediator::collectRoiLuma(
return histogram::HistogramErrorCode::NONE;
}
-histogram::RoiRect histogram::HistogramMediator::calRoi(RoiRect roi) {
+histogram::RoiRect histogram::HistogramMediator::calRoi(const RoiRect &roi) {
RoiRect roi_return = {-1, -1, -1, -1};
ExynosDisplayDrmInterface *moduleDisplayInterface =
static_cast<ExynosDisplayDrmInterface *>(mDisplay->mDisplayInterface.get());