| 121 | } |
| 122 | |
| 123 | Status EglEnvironment::InitPBufferContext() { |
| 124 | RETURN_IF_ERROR(CreatePBufferContext(display_, EGL_NO_CONTEXT, &context_)); |
| 125 | RETURN_IF_ERROR(CreatePbufferRGBSurface(context_.config(), display_, 1, 1, |
| 126 | &surface_read_)); |
| 127 | RETURN_IF_ERROR(CreatePbufferRGBSurface(context_.config(), display_, 1, 1, |
| 128 | &surface_draw_)); |
| 129 | return context_.MakeCurrent(surface_read_.surface(), surface_draw_.surface()); |
| 130 | } |
| 131 | |
| 132 | void EglEnvironment::ForceSyncTurning() { |
| 133 | glGenFramebuffers(1, &dummy_framebuffer_); |
nothing calls this directly
no test coverage detected