OSDN Git Service

Improve screenshot performance on some devices (DO NOT MERGE)
authorMathias Agopian <mathias@google.com>
Thu, 11 Apr 2013 05:55:41 +0000 (22:55 -0700)
committerThe Android Automerger <android-build@android.com>
Fri, 12 Apr 2013 06:28:25 +0000 (23:28 -0700)
commitb90d8dc527f02687b36f0ab766855024b7bdb4a8
tree8c4bb55925067d105376ae9708130870cfc715e7
parent6bd8dee87e96365e3ceb901a5ef935b32ca84cd9
Improve screenshot performance on some devices (DO NOT MERGE)

this affects devices that need a glReadPixels(). We use
a FBO instead of a GlConsumer as an intermediate render target, this
saves 2 calls to eglMakeCurrent().

On Galaxy Nexus this allows us to go from ~135ms to ~35ms for
recent's screenshots.

Bug: 8582615
Change-Id: I6b25291ecc235f1927579bbb2db3c731e985c6e8
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h