OSDN Git Service

Make surfaceRedrawNeeded forgiving
authorJohn Reck <jreck@google.com>
Mon, 18 Apr 2016 20:26:48 +0000 (13:26 -0700)
committerJohn Reck <jreck@google.com>
Mon, 18 Apr 2016 20:26:48 +0000 (13:26 -0700)
commitfd3cee138e24f6fa84db89a936eb7381a8673fe9
tree83c8e4b61e67cfb011a0cc10635a6a9a267fa7ba
parent7d0b8d792886b2ed5ff89ac6c2723fba9d44c7d4
Make surfaceRedrawNeeded forgiving

Fixes: 27071678

It's semi-common for apps to not realize surfaceRedrawNeeded
is a callback they can (and should) be handling, so have it be
more tolerant in lifecycle handling.

Specifically allow a renderer to have not yet been set on
GLSurfaceView, even though it was supposed to have been set already.
Apps are overriding the other lifecycle methods that require this
(created, changed, an destroyed) but not noticing this method.

Change-Id: I6cebca541eeec6e9949bdb55f687b095768a17b2
opengl/java/android/opengl/GLSurfaceView.java