Permalink
Browse files

TransferQueue: use a few extra buffers

This change is a temporary workaround for a buffer synchronization issue.

Bug: 6876502
Change-Id: I030b26818ba7e78037a38dcaddd18782cd086b75
  • Loading branch information...
1 parent 456b899 commit 2a6ef96e3195f8616d602685f2439e22b522ecfd Jamie Gennis committed with The Android Automerger Oct 26, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Source/WebCore/platform/graphics/android/rendering/TransferQueue.cpp
@@ -117,9 +117,13 @@ 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);
+ bufferQueue->setBufferCount(m_transferQueueSize + extraBuffersNeeded +
+ extraHackyBuffersNeeded);
int result = native_window_set_buffers_geometry(m_ANW.get(),
width, height, HAL_PIXEL_FORMAT_RGBA_8888);

0 comments on commit 2a6ef96

Please sign in to comment.