| 27 | namespace { |
| 28 | |
| 29 | Status GetConfig(EGLDisplay display, const EGLint* attributes, |
| 30 | EGLConfig* config) { |
| 31 | EGLint config_count; |
| 32 | bool chosen = eglChooseConfig(display, attributes, config, 1, &config_count); |
| 33 | RETURN_IF_ERROR(GetOpenGlErrors()); |
| 34 | if (!chosen || config_count == 0) { |
| 35 | return InternalError("No EGL error, but eglChooseConfig failed."); |
| 36 | } |
| 37 | return OkStatus(); |
| 38 | } |
| 39 | |
| 40 | Status CreateContext(EGLDisplay display, EGLContext shared_context, |
| 41 | EGLConfig config, EglContext* egl_context) { |
no test coverage detected