Lines Matching refs:contextID
255 GalliumContext::DestroyContext(context_id contextID)
260 if (!fContext[contextID])
263 if (fContext[contextID]->st) {
264 fContext[contextID]->st->flush(fContext[contextID]->st, 0, NULL, NULL, NULL);
265 fContext[contextID]->st->destroy(fContext[contextID]->st);
268 if (fContext[contextID]->postProcess)
269 pp_free(fContext[contextID]->postProcess);
272 if (fContext[contextID]->buffer)
273 hgl_destroy_st_framebuffer(fContext[contextID]->buffer);
275 if (fContext[contextID]->stVisual)
276 hgl_destroy_st_visual(fContext[contextID]->stVisual);
278 FREE(fContext[contextID]);
283 GalliumContext::SetCurrentContext(bool set, context_id contextID)
287 if (contextID < 0 || contextID > CONTEXT_MAX) {
294 struct hgl_context* context = fContext[contextID];
298 __func__, contextID);
310 fCurrentContext = contextID;
312 if (oldContextID > 0 && oldContextID != contextID) {
327 GalliumContext::SwapBuffers(context_id contextID)
332 struct hgl_context* context = fContext[contextID];
359 GalliumContext::Draw(context_id contextID, BRect updateRect)
361 struct hgl_context *context = fContext[contextID];