diff options
author | 2019-01-07 20:08:57 +0000 | |
---|---|---|
committer | 2019-01-07 20:08:57 +0000 | |
commit | bff22906ce3b98e7b002ab952069a74d5e45eba6 (patch) | |
tree | 03b205fc25cb933350b43b92135817d8b1817d47 /libs/gui/SurfaceControl.cpp | |
parent | 733096693436e7b7b865346729a9541d419292b0 (diff) | |
parent | b89ea9d9533864bc6f73a24a4d33d3edba6d1365 (diff) |
Merge "SurfaceFlinger: Removed createScopedConnection."
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
-rw-r--r-- | libs/gui/SurfaceControl.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/gui/SurfaceControl.cpp b/libs/gui/SurfaceControl.cpp index 3a6dfdada5..b6ef286fd4 100644 --- a/libs/gui/SurfaceControl.cpp +++ b/libs/gui/SurfaceControl.cpp @@ -54,6 +54,13 @@ SurfaceControl::SurfaceControl( { } +SurfaceControl::SurfaceControl(const sp<SurfaceControl>& other) { + mClient = other->mClient; + mHandle = other->mHandle; + mGraphicBufferProducer = other->mGraphicBufferProducer; + mOwned = false; +} + SurfaceControl::~SurfaceControl() { destroy(); |