summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceControl.cpp
diff options
context:
space:
mode:
author Rob Carr <racarr@google.com> 2019-01-07 20:08:57 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-01-07 20:08:57 +0000
commitbff22906ce3b98e7b002ab952069a74d5e45eba6 (patch)
tree03b205fc25cb933350b43b92135817d8b1817d47 /libs/gui/SurfaceControl.cpp
parent733096693436e7b7b865346729a9541d419292b0 (diff)
parentb89ea9d9533864bc6f73a24a4d33d3edba6d1365 (diff)
Merge "SurfaceFlinger: Removed createScopedConnection."
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
-rw-r--r--libs/gui/SurfaceControl.cpp7
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();