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

Function GetConfig

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

Source from the content-addressed store, hash-verified

27namespace {
28
29Status 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
40Status CreateContext(EGLDisplay display, EGLContext shared_context,
41 EGLConfig config, EglContext* egl_context) {

Callers 2

CreateSurfacelessContextFunction · 0.85
CreatePBufferContextFunction · 0.85

Calls 3

GetOpenGlErrorsFunction · 0.85
OkStatusFunction · 0.85
InternalErrorFunction · 0.50

Tested by

no test coverage detected