Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 3c77f875627a504ec8e52a341ce654a4e16a3838 1 parent 274877d
Steve Kondik cyanogen authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 services/surfaceflinger/SurfaceTextureLayer.cpp
7 services/surfaceflinger/SurfaceTextureLayer.cpp
View
@@ -28,7 +28,12 @@ namespace android {
SurfaceTextureLayer::SurfaceTextureLayer()
- : BufferQueue(true) {
+#ifdef QCOM_HARDWARE
+ : BufferQueue(true, 3)
+#else
+ : BufferQueue(true)
+#endif
+{
}
SurfaceTextureLayer::~SurfaceTextureLayer() {
Please sign in to comment.
Something went wrong with that request. Please try again.