summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Melody Hsu <melodymhsu@google.com> 2024-03-03 07:35:38 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-03-03 07:35:38 +0000
commit787d302b3bc74c1fa9c36da5550c5b0ea9f05c3a (patch)
treedbd507f02cd0ee03acba08f2387ddb4cb3c02201 /services/surfaceflinger/RegionSamplingThread.cpp
parentb43b58378679bf4ac8d0837047187d4509bc45d8 (diff)
Revert "Refactor of screenshot code on main thread."
This reverts commit b43b58378679bf4ac8d0837047187d4509bc45d8. Reason for revert: Appstartup regression found in b/327488235 Change-Id: I8d975b81afd2cde1d543e8bc7e730a6e42393bec
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
-rw-r--r--services/surfaceflinger/RegionSamplingThread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/RegionSamplingThread.cpp b/services/surfaceflinger/RegionSamplingThread.cpp
index 77e045d6f9..c888ccc8ae 100644
--- a/services/surfaceflinger/RegionSamplingThread.cpp
+++ b/services/surfaceflinger/RegionSamplingThread.cpp
@@ -377,8 +377,8 @@ void RegionSamplingThread::captureSample() {
constexpr bool kIsProtected = false;
if (const auto fenceResult =
- mFlinger.captureScreenshot(std::move(renderAreaFuture), getLayerSnapshots, buffer,
- kRegionSampling, kGrayscale, kIsProtected, nullptr)
+ mFlinger.captureScreenCommon(std::move(renderAreaFuture), getLayerSnapshots, buffer,
+ kRegionSampling, kGrayscale, kIsProtected, nullptr)
.get();
fenceResult.ok()) {
fenceResult.value()->waitForever(LOG_TAG);