summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceComposerClient.cpp
diff options
context:
space:
mode:
author Kevin DuBois <kevindubois@google.com> 2018-11-19 10:52:38 -0800
committer Kevin DuBois <kevindubois@google.com> 2018-12-03 13:45:01 -0800
commit74e53776ddca1b658589a59e29b226e1afb3f2fa (patch)
treeb54c7421cf9ffa5f8c06ac739ecb4ddf293d3a4e /libs/gui/SurfaceComposerClient.cpp
parentface176394e0a28bd7b7b8bed13b4696e79668a2 (diff)
[SurfaceFlinger] add setDisplayContentSamplingEnabled i/f
Add interface to ISurfaceComposer that can enable or disable the graphics.composer's collection of the displayed content statistics. Bug: 116028618 Test: Boot Test: ran test client against prototype, see enable/disable working. Test: Ran new tests './libgui_test --gtest_filter="DisplayedContentSamp*"' Test: on hwc with and without new function hook. Change-Id: Ifb487e2bfbd8e0db6178ccbf762aa968c34576b9
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
-rw-r--r--libs/gui/SurfaceComposerClient.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp
index 9dfccc799e..405d2287be 100644
--- a/libs/gui/SurfaceComposerClient.cpp
+++ b/libs/gui/SurfaceComposerClient.cpp
@@ -1098,6 +1098,14 @@ status_t SurfaceComposerClient::getDisplayedContentSamplingAttributes(const sp<I
outComponentMask);
}
+status_t SurfaceComposerClient::setDisplayContentSamplingEnabled(const sp<IBinder>& display,
+ bool enable, uint8_t componentMask,
+ uint64_t maxFrames) {
+ return ComposerService::getComposerService()->setDisplayContentSamplingEnabled(display, enable,
+ componentMask,
+ maxFrames);
+}
+
// ----------------------------------------------------------------------------
status_t ScreenshotClient::capture(const sp<IBinder>& display, const ui::Dataspace reqDataSpace,