Searched refs:context_id (Results 1 – 2 of 2) sorted by relevance
281 bool GLEnv::SwitchToContextId(int context_id) { in SwitchToContextId() argument282 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() argument294 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()
146 bool SwitchToContextId(int context_id);151 void ReleaseContextId(int context_id);