summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Gil Dekel <gildekel@google.com> 2025-03-03 17:08:43 -0500
committer Gil Dekel <gildekel@google.com> 2025-03-11 13:00:04 -0400
commitde4ce29c532ffb71b1d0b4b252e0fd9ca68e8d45 (patch)
tree877207eb17473699b35cd3ab234c8efb9cdd93ae /services/surfaceflinger/RegionSamplingThread.cpp
parent222571707f358a95ed3f60e61c4ff0959b9ae682 (diff)
SF: Remove *DisplayId::tryCast usage from ScreenCaptureOutput
Work towards DisplayId opaqueness by eliminating call-sites to APIs that parse the display ID values directly. One such site is ScreenCaptureOutput. Replace all calls to *DisplayId::tryCast with local calls to cached display variant. Flag: com.android.graphics.surfaceflinger.flags.stable_edid_ids Bug: 390690584 Test: libcompositionengine_test && libsurfaceflinger_unittest Change-Id: Ic83a2b2bfa6fc98b1d0fccc60f450d1587c2cc34
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
-rw-r--r--services/surfaceflinger/RegionSamplingThread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/RegionSamplingThread.cpp b/services/surfaceflinger/RegionSamplingThread.cpp
index 514adac20c..615492a872 100644
--- a/services/surfaceflinger/RegionSamplingThread.cpp
+++ b/services/surfaceflinger/RegionSamplingThread.cpp
@@ -348,7 +348,7 @@ void RegionSamplingThread::captureSample() {
SurfaceFlinger::ScreenshotArgs screenshotArgs;
screenshotArgs.captureTypeVariant = displayWeak;
- screenshotArgs.displayId = std::nullopt;
+ screenshotArgs.displayIdVariant = std::nullopt;
screenshotArgs.sourceCrop = sampledBounds.isEmpty() ? layerStackSpaceRect : sampledBounds;
screenshotArgs.reqSize = sampledBounds.getSize();
screenshotArgs.dataspace = ui::Dataspace::V0_SRGB;