diff options
author | 2021-01-05 11:04:50 -0800 | |
---|---|---|
committer | 2021-01-07 17:38:55 -0800 | |
commit | 0ef7caa3ee99f1043e1d922d59e6d56341e501af (patch) | |
tree | c6b519f83ec2e021f93cb16621bddee3a904b703 /libs/gui/LayerState.cpp | |
parent | 4d25380ce2b3fb5ffbe422e23c19ad387ec87ce9 (diff) |
Convert IScreenCaptureListener to AIDL
Test: Screen capture works
Fixes: 166271443
Change-Id: Iecb991a0c8e0885adb87141ed85caa6dcc7c543f
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r-- | libs/gui/LayerState.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index 7d2c7b88df..63be3edf94 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -714,33 +714,4 @@ status_t LayerCaptureArgs::read(const Parcel& input) { return NO_ERROR; } -status_t ScreenCaptureResults::write(Parcel& output) const { - if (buffer != nullptr) { - SAFE_PARCEL(output.writeBool, true); - SAFE_PARCEL(output.write, *buffer); - } else { - SAFE_PARCEL(output.writeBool, false); - } - SAFE_PARCEL(output.writeBool, capturedSecureLayers); - SAFE_PARCEL(output.writeUint32, static_cast<uint32_t>(capturedDataspace)); - SAFE_PARCEL(output.writeInt32, result); - return NO_ERROR; -} - -status_t ScreenCaptureResults::read(const Parcel& input) { - bool hasGraphicBuffer; - SAFE_PARCEL(input.readBool, &hasGraphicBuffer); - if (hasGraphicBuffer) { - buffer = new GraphicBuffer(); - SAFE_PARCEL(input.read, *buffer); - } - - SAFE_PARCEL(input.readBool, &capturedSecureLayers); - uint32_t dataspace = 0; - SAFE_PARCEL(input.readUint32, &dataspace); - capturedDataspace = static_cast<ui::Dataspace>(dataspace); - SAFE_PARCEL(input.readInt32, &result); - return NO_ERROR; -} - }; // namespace android |