From f1833853ccc1a54dcc7056a9f87eefa1baccc945 Mon Sep 17 00:00:00 2001 From: Dominik Laskowski Date: Tue, 23 Mar 2021 15:06:50 -0700 Subject: SF: Remove layer stack lookup for screencap GPU virtual displays now have IDs, so the (ambiguous) fallback is no longer necessary. Remove PhysicalDisplayId constructor from uint64_t to enforce error checking at compile time when upcasting or deserializing. Bug: 162612135 Bug: 182939859 Test: screencap -d Test: DisplayId_test Change-Id: I68fa0835cbc915975c7fa40c7d544d9491db9fa2 --- libs/gui/SurfaceComposerClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/gui/SurfaceComposerClient.cpp') diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index 83124cf0cd..fd72a00339 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -2098,12 +2098,12 @@ status_t ScreenshotClient::captureDisplay(const DisplayCaptureArgs& captureArgs, return s->captureDisplay(captureArgs, captureListener); } -status_t ScreenshotClient::captureDisplay(uint64_t displayOrLayerStack, +status_t ScreenshotClient::captureDisplay(DisplayId displayId, const sp& captureListener) { sp s(ComposerService::getComposerService()); if (s == nullptr) return NO_INIT; - return s->captureDisplay(displayOrLayerStack, captureListener); + return s->captureDisplay(displayId, captureListener); } status_t ScreenshotClient::captureLayers(const LayerCaptureArgs& captureArgs, -- cgit v1.2.3-59-g8ed1b