Home | History | Annotate | Download | only in service

Lines Matching refs:surface

34   // with the surface (the context already exists), but we do need to
56 bool GLContextVirtual::MakeCurrent(gfx::GLSurface* surface) {
58 return shared_context_->MakeVirtuallyCurrent(this, surface);
64 void GLContextVirtual::ReleaseCurrent(gfx::GLSurface* surface) {
65 if (IsCurrent(surface)) {
67 shared_context_->ReleaseCurrent(surface);
71 bool GLContextVirtual::IsCurrent(gfx::GLSurface* surface) {
72 // If it's a real surface it needs to be current.
73 if (surface &&
74 !surface->IsOffscreen() &&
75 !surface->GetBackingFrameBufferObject())
76 return shared_context_->IsCurrent(surface);