summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueConsumer.cpp
diff options
context:
space:
mode:
author Dan Stoza <stoza@google.com> 2015-04-02 22:37:04 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2015-04-02 22:37:04 +0000
commitc1487b1a602c510d9dc6168f5aebe744a1208ff6 (patch)
tree01b4cdfe9fa08c5b8fc3041afaa03945bd604c05 /libs/gui/BufferQueueConsumer.cpp
parent888bb7184d3ef769feb8a4541b41e8a19ca33ef0 (diff)
parent921d1d7a61f527b7bbf42e9ba46bd92342cc7c99 (diff)
Merge "Revert "libgui: Plumb attach/detach through CpuConsumer""
Diffstat (limited to 'libs/gui/BufferQueueConsumer.cpp')
-rw-r--r--libs/gui/BufferQueueConsumer.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/libs/gui/BufferQueueConsumer.cpp b/libs/gui/BufferQueueConsumer.cpp
index c7faeebe75..526c3b7295 100644
--- a/libs/gui/BufferQueueConsumer.cpp
+++ b/libs/gui/BufferQueueConsumer.cpp
@@ -247,16 +247,12 @@ status_t BufferQueueConsumer::attachBuffer(int* outSlot,
ATRACE_BUFFER_INDEX(*outSlot);
BQ_LOGV("attachBuffer(C): returning slot %d", *outSlot);
- // If these are modified, they also need to be modified in
- // CpuConsumer::attachAndReleaseBuffer
mSlots[*outSlot].mGraphicBuffer = buffer;
- mSlots[*outSlot].mFence = Fence::NO_FENCE;
- mSlots[*outSlot].mFrameNumber = 0;
-
- // Changes to these do not need to be propagated to CpuConsumer
mSlots[*outSlot].mBufferState = BufferSlot::ACQUIRED;
mSlots[*outSlot].mAttachedByConsumer = true;
mSlots[*outSlot].mNeedsCleanupOnRelease = false;
+ mSlots[*outSlot].mFence = Fence::NO_FENCE;
+ mSlots[*outSlot].mFrameNumber = 0;
// mAcquireCalled tells BufferQueue that it doesn't need to send a valid
// GraphicBuffer pointer on the next acquireBuffer call, which decreases