Lines Matching defs:contexts
967 vector<EGLContext>& contexts = (thread.getId() == 0 ? m_contexts0 : m_contexts1);
1003 else if (contexts.size() > 5 && ((m_types & TYPE_CONTEXT) != 0))
1018 else if (contexts.size() < 3 && ((m_types & TYPE_CONTEXT) != 0))
1157 contexts.push_back(context);
1217 const int contextNdx = rnd.getInt(0, (int)(contexts.size()-1));
1219 TCU_CHECK_EGL_CALL(eglDestroyContext(m_display, contexts[contextNdx]));
1220 thread.getLog() << ThreadLog::BeginMessage << "eglDestroyContext(" << m_display << ", " << contexts[contextNdx] << ")" << ThreadLog::EndMessage;
1221 contexts.erase(contexts.begin() + contextNdx);
1239 vector<EGLContext>& contexts = (thread.getId() == 0 ? m_contexts0 : m_contexts1);
1256 for (int contextNdx = 0; contextNdx < (int)contexts.size(); contextNdx++)
1257 m_sharedContexts.push_back(contexts[contextNdx]);
1259 contexts.clear();
1268 vector<EGLContext>& contexts = (thread.getId() == 0 ? m_contexts0 : m_contexts1);
1298 contexts.push_back(m_sharedContexts[ndx]);
1395 vector<EGLContext>& contexts = (thread.getId() == 0 ? m_contexts0 : m_contexts1);
1446 for (int contextNdx = 0; contextNdx < (int)contexts.size(); contextNdx++)
1448 if (contexts[contextNdx] != EGL_NO_CONTEXT)
1450 TCU_CHECK_EGL_CALL(eglDestroyContext(m_display, contexts[contextNdx]));
1451 thread.getLog() << ThreadLog::BeginMessage << "eglDestroyContext(" << m_display << ", " << contexts[contextNdx] << ")" << ThreadLog::EndMessage;
1452 contexts[contextNdx] = EGL_NO_CONTEXT;
1455 contexts.clear();