OSDN Git Service

only use glReadPixels() when needed when taking screenshots
authorMathias Agopian <mathias@google.com>
Thu, 21 Mar 2013 01:36:41 +0000 (18:36 -0700)
committerMathias Agopian <mathias@google.com>
Thu, 21 Mar 2013 21:01:53 +0000 (14:01 -0700)
commitb4b1730abb7824dc084468c4942f010d94a7e039
treead2f3071b7b4acc0133a089e2daf129b0c47174a
parent7c1a487ba8c0a3b591a77e2ddcb33ef9bdfaff64
only use glReadPixels() when needed when taking screenshots

some drivers don't support this yet, so we use a system
property to enable the glReadPixels "workaround" for them:

  ro.bq.gpu_to_cpu_unsupported=1

Change-Id: I74d6a3a8f0cee8d5a507b72c760cf247e39195e0
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h