Searched refs:gEGLErrorKey (Results 1 - 1 of 1) sorted by relevance

/frameworks/native/opengl/libagl/
H A Degl.cpp68 static pthread_key_t gEGLErrorKey = -1; member in namespace:android
77 if (ggl_unlikely(gEGLErrorKey == -1)) {
79 if (gEGLErrorKey == -1)
80 pthread_key_create(&gEGLErrorKey, NULL);
83 pthread_setspecific(gEGLErrorKey, (void*)(uintptr_t)error);
88 if (ggl_unlikely(gEGLErrorKey == -1))
90 GLint error = (GLint)(uintptr_t)pthread_getspecific(gEGLErrorKey);
96 pthread_setspecific(gEGLErrorKey, (void*)(uintptr_t)EGL_SUCCESS);

Completed in 370 milliseconds