summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceComposerClient.cpp
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2023-11-16 00:03:29 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-11-16 00:03:29 +0000
commit8f36308096e60ae35fc0371d4145d6eb20387192 (patch)
tree85ff9cfef88682d4d1b15abedb64470022d164e0 /libs/gui/SurfaceComposerClient.cpp
parent15e788a9ab2e0990b554b6b06535c90942b40fc1 (diff)
parent7e4c4872b792d59b6ba00dd54f2ead8e8de9ca0c (diff)
Merge "Add capture args to captureDisplayById" into main
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
-rw-r--r--libs/gui/SurfaceComposerClient.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp
index a3518110cd..922b0ddcde 100644
--- a/libs/gui/SurfaceComposerClient.cpp
+++ b/libs/gui/SurfaceComposerClient.cpp
@@ -3122,12 +3122,12 @@ status_t ScreenshotClient::captureDisplay(const DisplayCaptureArgs& captureArgs,
return statusTFromBinderStatus(status);
}
-status_t ScreenshotClient::captureDisplay(DisplayId displayId,
+status_t ScreenshotClient::captureDisplay(DisplayId displayId, const gui::CaptureArgs& captureArgs,
const sp<IScreenCaptureListener>& captureListener) {
sp<gui::ISurfaceComposer> s(ComposerServiceAIDL::getComposerService());
if (s == nullptr) return NO_INIT;
- binder::Status status = s->captureDisplayById(displayId.value, captureListener);
+ binder::Status status = s->captureDisplayById(displayId.value, captureArgs, captureListener);
return statusTFromBinderStatus(status);
}