diff options
| author | 2020-04-27 17:20:42 +0000 | |
|---|---|---|
| committer | 2020-04-27 17:20:42 +0000 | |
| commit | 2a6961746d67c1ec55fdbc8820d5a8cad6176163 (patch) | |
| tree | fa92e2a36886f618fa29f982a63958df2d59f1f5 /libs/gui/BLASTBufferQueue.cpp | |
| parent | f7f7cde49dbdfddd8b4dbb240d0bc87f4002c4b3 (diff) | |
| parent | cedef0560eab55e767bd4a1f433ea30af301d8b7 (diff) | |
Merge "BLASTBufferQueue: Don't query for triple buffering" into rvc-dev
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
| -rw-r--r-- | libs/gui/BLASTBufferQueue.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/gui/BLASTBufferQueue.cpp b/libs/gui/BLASTBufferQueue.cpp index b0d95214ff..5965201341 100644 --- a/libs/gui/BLASTBufferQueue.cpp +++ b/libs/gui/BLASTBufferQueue.cpp @@ -95,7 +95,8 @@ void BLASTBufferItemConsumer::getConnectionEvents(uint64_t frameNumber, bool* ne if (needsDisconnect != nullptr) *needsDisconnect = disconnect; } -BLASTBufferQueue::BLASTBufferQueue(const sp<SurfaceControl>& surface, int width, int height) +BLASTBufferQueue::BLASTBufferQueue(const sp<SurfaceControl>& surface, int width, int height, + bool enableTripleBuffering) : mSurfaceControl(surface), mWidth(width), mHeight(height), @@ -105,8 +106,7 @@ BLASTBufferQueue::BLASTBufferQueue(const sp<SurfaceControl>& surface, int width, // explicitly so that dequeueBuffer will block mProducer->setDequeueTimeout(std::numeric_limits<int64_t>::max()); - int8_t disableTripleBuffer = property_get_bool("ro.sf.disable_triple_buffer", 0); - if (!disableTripleBuffer) { + if (enableTripleBuffering) { mProducer->setMaxDequeuedBufferCount(2); } mBufferItemConsumer = |