Lines Matching refs:handle
57 int Renderer::createSurface(RenderingThread *thread, const ClientHandle & handle)
61 assert(m_surfaces.find(handle) == m_surfaces.end());
62 if (handle.handle == 0) {
71 m_surfaces.insert(SurfaceMap::value_type(handle, surface));
76 int Renderer::destroySurface(RenderingThread *thread, const ClientHandle &handle)
80 SurfaceMap::iterator i = m_surfaces.find(handle);
86 m_surfaces.erase(handle);
91 int Renderer::createContext(RenderingThread *thread, const ClientHandle &handle, ClientHandle shareCtx, int version)
95 assert(m_ctxs.find(handle) == m_ctxs.end());
97 if (shareCtx.handle != 0) {
112 m_ctxs.insert(ContextMap::value_type(handle, ctx));
116 int Renderer::destroyContext(RenderingThread *thread, const ClientHandle &handle)
120 ContextMap::iterator i = m_ctxs.find(handle);
126 m_ctxs.erase(handle);
142 if (ctx.handle != 0 && c != m_ctxs.end()) {