From 74e53776ddca1b658589a59e29b226e1afb3f2fa Mon Sep 17 00:00:00 2001 From: Kevin DuBois Date: Mon, 19 Nov 2018 10:52:38 -0800 Subject: [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 --- libs/gui/SurfaceComposerClient.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libs/gui/SurfaceComposerClient.cpp') 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& display, + bool enable, uint8_t componentMask, + uint64_t maxFrames) { + return ComposerService::getComposerService()->setDisplayContentSamplingEnabled(display, enable, + componentMask, + maxFrames); +} + // ---------------------------------------------------------------------------- status_t ScreenshotClient::capture(const sp& display, const ui::Dataspace reqDataSpace, -- cgit v1.2.3-59-g8ed1b