From 1db73f66624e7d151710483dd58e03eed672f064 Mon Sep 17 00:00:00 2001 From: Robert Carr Date: Wed, 21 Dec 2016 12:58:51 -0800 Subject: SurfaceFlinger: Add support for non-privileged clients. Allow clients without privilege to create child layers through scoped connections. We enable this in preparation for allowing SurfaceView to bypass the WindowManager. We include support for reparenting of all of a layer's children for the WindowManager to use in cases where one surface is replacing another (while keeping its children around). Test: Tested with corresponding SurfaceView modifications. Change-Id: I9920e6730d719113522a68788e63fb59f70d3406 --- libs/gui/LayerState.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/gui/LayerState.cpp') diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index 16bf324298..fbf76a1f50 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -40,6 +40,7 @@ status_t layer_state_t::write(Parcel& output) const output.write(crop); output.write(finalCrop); output.writeStrongBinder(handle); + output.writeStrongBinder(reparentHandle); output.writeUint64(frameNumber); output.writeInt32(overrideScalingMode); output.writeUint32(type); @@ -70,6 +71,7 @@ status_t layer_state_t::read(const Parcel& input) input.read(crop); input.read(finalCrop); handle = input.readStrongBinder(); + reparentHandle = input.readStrongBinder(); frameNumber = input.readUint64(); overrideScalingMode = input.readInt32(); type = input.readUint32(); -- cgit v1.2.3-59-g8ed1b