summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceControl.cpp
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2021-06-18 17:27:23 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2021-06-18 17:27:23 +0000
commit19e047fb7c39fe52ab4bfbb02c09056b1b14d6f0 (patch)
treef5db4963468dc335b300cc870b462697ca7e3ee2 /libs/gui/SurfaceControl.cpp
parent4678b7eb290a6e10265845044278b04a5ca0a6e3 (diff)
parenta9e4e2fb7aea58d18c230e9fb8d40da72537997e (diff)
Merge changes from topic "sf_maxAcquiredBufferCount" into sc-dev am: a9e4e2fb7a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/14633449 Change-Id: I6d4b537877a1c2aabaddce45e1efb32ab0b0b362
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
-rw-r--r--libs/gui/SurfaceControl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/SurfaceControl.cpp b/libs/gui/SurfaceControl.cpp
index d7c07b9755..6529a4e51c 100644
--- a/libs/gui/SurfaceControl.cpp
+++ b/libs/gui/SurfaceControl.cpp
@@ -139,7 +139,7 @@ sp<Surface> SurfaceControl::generateSurfaceLocked()
ISurfaceComposerClient::eOpaque);
mBbqChild = mClient->createSurface(String8("bbq-wrapper"), 0, 0, mFormat,
flags, mHandle, {}, &ignore);
- mBbq = new BLASTBufferQueue("bbq-adapter", mBbqChild, mWidth, mHeight, mFormat);
+ mBbq = sp<BLASTBufferQueue>::make("bbq-adapter", mBbqChild, mWidth, mHeight, mFormat);
// This surface is always consumed by SurfaceFlinger, so the
// producerControlledByApp value doesn't matter; using false.