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

Method InitPBufferContext

tensorflow/lite/delegates/gpu/gl/egl_environment.cc:123–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123Status 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
132void EglEnvironment::ForceSyncTurning() {
133 glGenFramebuffers(1, &dummy_framebuffer_);

Callers

nothing calls this directly

Calls 5

CreatePBufferContextFunction · 0.85
CreatePbufferRGBSurfaceFunction · 0.85
MakeCurrentMethod · 0.80
surfaceMethod · 0.80
configMethod · 0.45

Tested by

no test coverage detected