diff options
| author | 2021-06-18 17:21:39 +0000 | |
|---|---|---|
| committer | 2021-06-18 17:21:39 +0000 | |
| commit | a9e4e2fb7aea58d18c230e9fb8d40da72537997e (patch) | |
| tree | f5db4963468dc335b300cc870b462697ca7e3ee2 /libs/gui/SurfaceControl.cpp | |
| parent | 7e19eaca332c9f301de70b404fb3648af82dcb3e (diff) | |
| parent | 899dcdb63ad9cb81d1987e89be08dc9603aad89b (diff) | |
Merge changes from topic "sf_maxAcquiredBufferCount" into sc-dev
* changes:
SF: change acquired buffers based on the current refresh rate
SF: increase the number of buffers for SurfaceView
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
| -rw-r--r-- | libs/gui/SurfaceControl.cpp | 2 |
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. |