Permalink
Browse files

Allow 3+ undequeued buffers for SurfaceTextureLayer

 * Eliminates launcher jank on QCOM hardware.
 * Original patch from QCOM that set this to 3 globally uses too much
   memory in places where it's not really needed such as camera.

Change-Id: I0153f981a3645f22fdb61b6ea38eeacb3eaf65de
  • Loading branch information...
1 parent 299b79b commit e6619e0833875ab7238907a3f15b5b922eda8505 @cyanogen cyanogen committed with Whitehawkx Aug 21, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 services/surfaceflinger/SurfaceTextureLayer.cpp
@@ -28,7 +28,12 @@ namespace android {
SurfaceTextureLayer::SurfaceTextureLayer()
- : BufferQueue(true) {
+#ifdef QCOM_HARDWARE
+ : BufferQueue(true, 3)
+#else
+ : BufferQueue(true)
+#endif
+{
}
SurfaceTextureLayer::~SurfaceTextureLayer() {

0 comments on commit e6619e0

Please sign in to comment.