diff options
author | 2017-03-01 17:49:23 +0000 | |
---|---|---|
committer | 2017-03-01 17:49:27 +0000 | |
commit | 77c073bdbe1b24a332056e1194a6162b7717a848 (patch) | |
tree | fefa2a6dc41aa65e35c8cc06d9dddaf64fc7b665 /libs/gui/LayerState.cpp | |
parent | 5ebcd56c6f57514f7833e7528a08d8ca55c48f69 (diff) | |
parent | 9524cb3b37a91b5741790c77ff24fd825b02bca7 (diff) |
Merge changes from topic 'surfaceview-without-wm'
* changes:
Add detachChildren transaction.
Add deferTransaction variant taking GraphicBufferProducer.
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r-- | libs/gui/LayerState.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index bb552aa67c..2461cba152 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -39,10 +39,11 @@ status_t layer_state_t::write(Parcel& output) const output.writeInplace(sizeof(layer_state_t::matrix22_t))) = matrix; output.write(crop); output.write(finalCrop); - output.writeStrongBinder(handle); + output.writeStrongBinder(barrierHandle); output.writeStrongBinder(reparentHandle); output.writeUint64(frameNumber); output.writeInt32(overrideScalingMode); + output.writeStrongBinder(IInterface::asBinder(barrierGbp)); output.write(transparentRegion); return NO_ERROR; } @@ -68,10 +69,12 @@ status_t layer_state_t::read(const Parcel& input) } input.read(crop); input.read(finalCrop); - handle = input.readStrongBinder(); + barrierHandle = input.readStrongBinder(); reparentHandle = input.readStrongBinder(); frameNumber = input.readUint64(); overrideScalingMode = input.readInt32(); + barrierGbp = + interface_cast<IGraphicBufferProducer>(input.readStrongBinder()); input.read(transparentRegion); return NO_ERROR; } |