MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / MakeCurrent

Method MakeCurrent

tensorflow/lite/delegates/gpu/gl/egl_context.cc:96–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96Status 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
105bool EglContext::IsCurrent() const {
106 return context_ == eglGetCurrentContext();

Callers 1

InitPBufferContextMethod · 0.80

Calls 3

GetOpenGlErrorsFunction · 0.85
OkStatusFunction · 0.85
InternalErrorFunction · 0.50

Tested by

no test coverage detected