summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author chaviw <chaviw@google.com> 2020-07-27 11:20:15 -0700
committer chaviw <chaviw@google.com> 2020-07-31 14:51:25 -0700
commit426b5c0cab15cacf94206dd3c879d30fa0a26670 (patch)
tree73ca2c51fd974ef2bb93cf5051ccab963f01bedb /services/surfaceflinger/RegionSamplingThread.cpp
parentb71b06257af88a9286a6f09fa44f8c5170a288b8 (diff)
Use ScreenCaptureResults in screenCapture helper functions
It makes more sense to directly send the ScreenCaptureResults object to the screenCapture helper functions so the render function can populate the results. This makes it easier when adding new result values since they likely want to be set for any screenshot path request. Currently, the result object contains the buffer, whether secure layers were captured, and the dataspace it was captured in. Test: SurfaceFlinger_test Bug: 162367424 Change-Id: I3b1f5264051bb2e885ce0d0df0cd18c8f55afdd1
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
-rw-r--r--services/surfaceflinger/RegionSamplingThread.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/surfaceflinger/RegionSamplingThread.cpp b/services/surfaceflinger/RegionSamplingThread.cpp
index 899d1fa024..17daadba02 100644
--- a/services/surfaceflinger/RegionSamplingThread.cpp
+++ b/services/surfaceflinger/RegionSamplingThread.cpp
@@ -442,9 +442,10 @@ void RegionSamplingThread::captureSample() {
PIXEL_FORMAT_RGBA_8888, 1, usage, "RegionSamplingThread");
}
- bool ignored;
+ ScreenCaptureResults captureResults;
mFlinger.captureScreenCommon(std::move(renderAreaFuture), traverseLayers, buffer,
- false /* identityTransform */, true /* regionSampling */, ignored);
+ false /* identityTransform */, true /* regionSampling */,
+ captureResults);
std::vector<Descriptor> activeDescriptors;
for (const auto& descriptor : descriptors) {