summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Peiyong Lin <lpy@google.com> 2020-10-16 00:21:25 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-10-16 00:21:25 +0000
commitdb0232d83b8c77b4f0a7a8a0a9102c08e6be9f02 (patch)
treebf1aee7bb837a928be024abbd690e1ba09e5625e /libs/gui/LayerState.cpp
parent396fed9becd70440405abcbdf20c1d5aa30d24be (diff)
parent05cc0118549860866a9b77057e39af86906cfef5 (diff)
Merge "[SurfaceFlinger] Add support to capture protected contents."
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r--libs/gui/LayerState.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp
index 782f35ae02..2e4d279a5b 100644
--- a/libs/gui/LayerState.cpp
+++ b/libs/gui/LayerState.cpp
@@ -586,6 +586,7 @@ status_t CaptureArgs::write(Parcel& output) const {
SAFE_PARCEL(output.writeBool, captureSecureLayers);
SAFE_PARCEL(output.writeInt32, uid);
SAFE_PARCEL(output.writeInt32, static_cast<int32_t>(dataspace));
+ SAFE_PARCEL(output.writeBool, allowProtected);
return NO_ERROR;
}
@@ -599,6 +600,7 @@ status_t CaptureArgs::read(const Parcel& input) {
SAFE_PARCEL(input.readInt32, &uid);
SAFE_PARCEL(input.readInt32, &value);
dataspace = static_cast<ui::Dataspace>(value);
+ SAFE_PARCEL(input.readBool, &allowProtected);
return NO_ERROR;
}