| 94 | } |
| 95 | |
| 96 | Status EglContext::MakeCurrent(EGLSurface read, EGLSurface write) { |
| 97 | bool is_made_current = eglMakeCurrent(display_, write, read, context_); |
| 98 | RETURN_IF_ERROR(GetOpenGlErrors()); |
| 99 | if (!is_made_current) { |
| 100 | return InternalError("No EGL error, but eglMakeCurrent failed."); |
| 101 | } |
| 102 | return OkStatus(); |
| 103 | } |
| 104 | |
| 105 | bool EglContext::IsCurrent() const { |
| 106 | return context_ == eglGetCurrentContext(); |
no test coverage detected