Revert "TransferQueue: use a few extra buffers"
bug:7549630
bug:6876502
This reverts commit 923f222d2281bf1faac6221b3fb1298940a6d205.
Change-Id: I232a5b5b077dc1046ff2d6272876a5e5b441d42c
diff --git a/Source/WebCore/platform/graphics/android/rendering/TransferQueue.cpp b/Source/WebCore/platform/graphics/android/rendering/TransferQueue.cpp
index 7c03219..b15fa6d 100644
--- a/Source/WebCore/platform/graphics/android/rendering/TransferQueue.cpp
+++ b/Source/WebCore/platform/graphics/android/rendering/TransferQueue.cpp
@@ -117,13 +117,9 @@
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);