Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
Revert "TransferQueue: use a few extra buffers"
Browse files Browse the repository at this point in the history
bug:7549630
bug:6876502

This reverts commit 923f222.

Change-Id: I232a5b5b077dc1046ff2d6272876a5e5b441d42c
  • Loading branch information
ChrisCraik committed Nov 15, 2012
1 parent 322b973 commit 0b65fac
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -117,13 +117,9 @@ void TransferQueue::initGLResources(int width, int height)
m_sharedSurfaceTexture->setSynchronousMode(true);

int extraBuffersNeeded = 0;
int extraHackyBuffersNeeded = 0;
if (m_transferQueueSize == EFFICIENT_SIZE)
extraHackyBuffersNeeded = 13;
m_ANW->query(m_ANW.get(), NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS,
&extraBuffersNeeded);
bufferQueue->setBufferCount(m_transferQueueSize + extraBuffersNeeded +
extraHackyBuffersNeeded);
bufferQueue->setBufferCount(m_transferQueueSize + extraBuffersNeeded);

int result = native_window_set_buffers_geometry(m_ANW.get(),
width, height, HAL_PIXEL_FORMAT_RGBA_8888);
Expand Down

0 comments on commit 0b65fac

Please sign in to comment.