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/SurfaceControl.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/SurfaceControl.cpp')
-rw-r--r-- | libs/gui/SurfaceControl.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/gui/SurfaceControl.cpp b/libs/gui/SurfaceControl.cpp index 070a3c85d7..1e693796eb 100644 --- a/libs/gui/SurfaceControl.cpp +++ b/libs/gui/SurfaceControl.cpp @@ -170,12 +170,25 @@ status_t SurfaceControl::deferTransactionUntil(const sp<IBinder>& handle, return mClient->deferTransactionUntil(mHandle, handle, frameNumber); } +status_t SurfaceControl::deferTransactionUntil(const sp<Surface>& handle, + uint64_t frameNumber) { + status_t err = validate(); + if (err < 0) return err; + return mClient->deferTransactionUntil(mHandle, handle, frameNumber); +} + status_t SurfaceControl::reparentChildren(const sp<IBinder>& newParentHandle) { status_t err = validate(); if (err < 0) return err; return mClient->reparentChildren(mHandle, newParentHandle); } +status_t SurfaceControl::detachChildren() { + status_t err = validate(); + if (err < 0) return err; + return mClient->detachChildren(mHandle); +} + status_t SurfaceControl::setOverrideScalingMode(int32_t overrideScalingMode) { status_t err = validate(); if (err < 0) return err; |