summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/BufferQueueLayer.cpp
diff options
context:
space:
mode:
author Robert Carr <racarr@google.com> 2020-04-08 11:03:23 -0700
committer Robert Carr <racarr@google.com> 2020-04-13 11:42:57 -0700
commita6bb2bc91914e1af8394f319911cce73b57355bf (patch)
treeb81442839108f14ad865ba2a9f83b9cdcbb99394 /services/surfaceflinger/BufferQueueLayer.cpp
parent696b6c83b15397d6c6088f5be58e5f78e998d72b (diff)
Buffer(Queue/State)Layer: Consolidate preparePerFrameCompositionState
The only difference is the BLAST implementation fails when there is no cached buffer. While in general we expect cacheBuffers to be called by apply() there's no reason to add more code just to fail here. Noticed this while investigating a bug where cacheBuffers wasn't called. Bug: 153561718 Test: Existing tests pass Change-Id: If1faae68ef11de3f8b37474abeff14c42af3cd57
Diffstat (limited to 'services/surfaceflinger/BufferQueueLayer.cpp')
-rw-r--r--services/surfaceflinger/BufferQueueLayer.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/services/surfaceflinger/BufferQueueLayer.cpp b/services/surfaceflinger/BufferQueueLayer.cpp
index c84b15d70d..f4e630e4d8 100644
--- a/services/surfaceflinger/BufferQueueLayer.cpp
+++ b/services/surfaceflinger/BufferQueueLayer.cpp
@@ -365,21 +365,6 @@ status_t BufferQueueLayer::updateFrameNumber(nsecs_t latchTime) {
return NO_ERROR;
}
-void BufferQueueLayer::preparePerFrameCompositionState() {
- BufferLayer::preparePerFrameCompositionState();
-
- auto* compositionState = editCompositionState();
- if (compositionState->compositionType == Hwc2::IComposerClient::Composition::SIDEBAND) {
- return;
- }
-
- compositionState->buffer = mBufferInfo.mBuffer;
- compositionState->bufferSlot = (mBufferInfo.mBufferSlot == BufferQueue::INVALID_BUFFER_SLOT)
- ? 0
- : mBufferInfo.mBufferSlot;
- compositionState->acquireFence = mBufferInfo.mFence;
-}
-
// -----------------------------------------------------------------------
// Interface implementation for BufferLayerConsumer::ContentsChangedListener
// -----------------------------------------------------------------------