Home
last modified time | relevance | path

Searched refs:context_id (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/media/mca/filterfw/native/core/
Dgl_env.cpp281 bool GLEnv::SwitchToContextId(int context_id) { in SwitchToContextId() argument
282 const EGLContext* context = FindOrNull(contexts_, context_id); in SwitchToContextId()
284 if (context_id_ != context_id) { in SwitchToContextId()
285 context_id_ = context_id; in SwitchToContextId()
293 void GLEnv::ReleaseContextId(int context_id) { in ReleaseContextId() argument
294 if (context_id > 0) { in ReleaseContextId()
295 const EGLContext* context = FindOrNull(contexts_, context_id); in ReleaseContextId()
297 contexts_.erase(context_id); in ReleaseContextId()
298 if (context_id_ == context_id && IsActive()) in ReleaseContextId()
Dgl_env.h146 bool SwitchToContextId(int context_id);
151 void ReleaseContextId(int context_id);