OSDN Git Service

GLConsumer: Fix eglTerminate/eglInit edge case.
authorEric Penner <epenner@google.com>
Tue, 26 Aug 2014 03:16:37 +0000 (20:16 -0700)
committerEric Penner <epenner@google.com>
Wed, 27 Aug 2014 03:10:58 +0000 (03:10 +0000)
commit2d14a0ed4f5861bfa67e9db138ffdc70d2d5e6e4
tree848da644b514505f608cda3e143ddb3a15e94278
parent7de2bde3c4c3a6ecc7e6f21e3f3322688b718c4a
GLConsumer: Fix eglTerminate/eglInit edge case.

If a display is terminated and then initialized, we can't detect
this using the display itself (it has the same value), but all
EglImages still become invalid for the display. This patch detects
this during image binding and forces creation of a new EglImage.

Bug: 10430249
Change-Id: I75101c50962f21263dca3ec6e241a2e5a3c23dad
include/gui/GLConsumer.h
libs/gui/GLConsumer.cpp
libs/gui/tests/SurfaceTextureMultiContextGL_test.cpp