diff options
author | Leo Chen <yinchiuan@google.com> | 2023-05-18 13:56:32 +0000 |
---|---|---|
committer | Leo Chen <yinchiuan@google.com> | 2023-06-06 03:07:01 +0000 |
commit | 89878201653dd12756ab8e570dfc61c47190a355 (patch) | |
tree | eab128211dc474623fa81fb7181cced2383d47e6 /libhwc2.1/histogram_mediator.cpp | |
parent | a5f01d4ae93a775f1eb60f41884c826715bc2bb1 (diff) |
libhwc2.1: Skip redundant onRefresh in histogramSample
DPU driver maintains always-on histogram engine state with up to
date histogram data. Therefore we don't have explicitly to trigger
onRefresh in case histogram configuration does not change.
Test: aidl_hist_client 500 500 1000 1999 340 340 344 POST 1000000
Bug: 261376040
Change-Id: I44824ee836adb66aeb214c371a11ed350d13b069
Signed-off-by: Leo Chen <yinchiuan@google.com>
Diffstat (limited to 'libhwc2.1/histogram_mediator.cpp')
-rw-r--r-- | libhwc2.1/histogram_mediator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhwc2.1/histogram_mediator.cpp b/libhwc2.1/histogram_mediator.cpp index d1fba54..f23feec 100644 --- a/libhwc2.1/histogram_mediator.cpp +++ b/libhwc2.1/histogram_mediator.cpp @@ -60,7 +60,7 @@ histogram::HistogramErrorCode histogram::HistogramMediator::requestHist() { std::unique_lock<std::mutex> lk(mIDLHistogram->mDataCollectingMutex); if (moduleDisplayInterface->setHistogramControl( hidl_histogram_control_t::HISTOGRAM_CONTROL_REQUEST) != NO_ERROR) { - return histogram::HistogramErrorCode::ENABLE_HIST_ERROR; + return histogram::HistogramErrorCode::ENABLE_HIST_ERROR; } mIDLHistogram->mHistReq_pending = true; } |