OSDN Git Service

EGL: Ensure surfaces are disconnected when destroyed
authorPablo Ceballos <pceballos@google.com>
Sat, 9 Apr 2016 22:56:12 +0000 (15:56 -0700)
committerPablo Ceballos <pceballos@google.com>
Sat, 9 Apr 2016 22:56:12 +0000 (15:56 -0700)
commit541de498ec7356c5e4af92500cf2fb8fc707fd50
tree4c90e67b401775ff887ef77522a5fadb2e842d9a
parent2af4358f78f5376e829a07259a459da91c7b9ba4
EGL: Ensure surfaces are disconnected when destroyed

When eglDestroySurface is called, remove all references to the surface
in all contexts. This ensures that the surface is disconnected
immediately.

Bug 27455025

Change-Id: I0edaf039d320dc40122657db32abdc418665841a
opengl/libs/EGL/eglApi.cpp
opengl/libs/EGL/egl_display.cpp
opengl/libs/EGL/egl_display.h
opengl/libs/EGL/egl_object.cpp
opengl/libs/EGL/egl_object.h