diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2011-11-29 14:43:29 -0800 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2011-11-29 14:43:29 -0800 |
commit | 2d19ea7c0d192c0c1eda1caed7e25143bbe22c20 (patch) | |
tree | 2c02bf1f8c13dcac45655436d8bad33bd312712f | |
parent | 647970367ac56d95e84fbfca92d8b7390d5d2fed (diff) | |
download | external_webkit-2d19ea7c0d192c0c1eda1caed7e25143bbe22c20.zip external_webkit-2d19ea7c0d192c0c1eda1caed7e25143bbe22c20.tar.gz external_webkit-2d19ea7c0d192c0c1eda1caed7e25143bbe22c20.tar.bz2 |
Set the exact buffer size to Surf Tex
Originally, the extra space is used to get the queue working when the size is
1, which is only for testing purpose.
Now we should claim this back to save some memory.
bug:5666757
Change-Id: I2079a562d8414f89274d7fff3342eafe32fe287f
-rw-r--r-- | Source/WebCore/platform/graphics/android/TransferQueue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/android/TransferQueue.cpp b/Source/WebCore/platform/graphics/android/TransferQueue.cpp index b92edaf..bfe92e9 100644 --- a/Source/WebCore/platform/graphics/android/TransferQueue.cpp +++ b/Source/WebCore/platform/graphics/android/TransferQueue.cpp @@ -97,7 +97,7 @@ void TransferQueue::initSharedSurfaceTextures(int width, int height) #endif m_ANW = new android::SurfaceTextureClient(m_sharedSurfaceTexture); m_sharedSurfaceTexture->setSynchronousMode(true); - m_sharedSurfaceTexture->setBufferCount(ST_BUFFER_NUMBER+1); + m_sharedSurfaceTexture->setBufferCount(ST_BUFFER_NUMBER); int result = native_window_set_buffers_geometry(m_ANW.get(), width, height, HAL_PIXEL_FORMAT_RGBA_8888); |