| 130 | } |
| 131 | |
| 132 | Status CreatePBufferContext(EGLDisplay display, EGLContext shared_context, |
| 133 | EglContext* egl_context) { |
| 134 | const EGLint attributes[] = {EGL_SURFACE_TYPE, |
| 135 | EGL_PBUFFER_BIT, |
| 136 | EGL_BLUE_SIZE, |
| 137 | 8, |
| 138 | EGL_GREEN_SIZE, |
| 139 | 8, |
| 140 | EGL_RED_SIZE, |
| 141 | 8, |
| 142 | EGL_RENDERABLE_TYPE, |
| 143 | EGL_OPENGL_ES3_BIT_KHR, |
| 144 | EGL_NONE}; |
| 145 | EGLConfig config; |
| 146 | RETURN_IF_ERROR(GetConfig(display, attributes, &config)); |
| 147 | return CreateContext(display, shared_context, config, egl_context); |
| 148 | } |
| 149 | |
| 150 | } // namespace gl |
| 151 | } // namespace gpu |
no test coverage detected