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
#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);