Home
last modified time | relevance | path

Searched refs:GLContext (Results 1 – 25 of 76) sorted by relevance

1234

/external/chromium_org/ui/gl/
Dgl_context.cc21 base::LazyInstance<base::ThreadLocalPointer<GLContext> >::Leaky
24 base::LazyInstance<base::ThreadLocalPointer<GLContext> >::Leaky
28 GLContext::GLContext(GLShareGroup* share_group) : share_group_(share_group) { in GLContext() function in gfx::GLContext
35 GLContext::~GLContext() { in ~GLContext()
42 bool GLContext::GetTotalGpuMemory(size_t* bytes) { in GetTotalGpuMemory()
48 void GLContext::SetSafeToForceGpuSwitch() { in SetSafeToForceGpuSwitch()
51 void GLContext::SetUnbindFboOnMakeCurrent() { in SetUnbindFboOnMakeCurrent()
55 std::string GLContext::GetExtensions() { in GetExtensions()
61 bool GLContext::HasExtension(const char* name) { in HasExtension()
71 GLShareGroup* GLContext::share_group() { in share_group()
[all …]
Dgl_context.h23 class GL_EXPORT GLContext : public base::RefCounted<GLContext> {
25 explicit GLContext(GLShareGroup* share_group);
84 static scoped_refptr<GLContext> CreateGLContext(
92 static GLContext* GetCurrent();
100 bool MakeVirtuallyCurrent(GLContext* virtual_context, GLSurface* surface);
104 void OnReleaseVirtuallyCurrent(GLContext* virtual_context);
107 virtual ~GLContext();
119 static GLContext* GetRealCurrent();
122 friend class base::RefCounted<GLContext>;
131 DISALLOW_COPY_AND_ASSIGN(GLContext);
[all …]
Dgl_share_group.h16 class GLContext; variable
25 void AddContext(GLContext* context);
26 void RemoveContext(GLContext* context);
34 GLContext* GetContext();
38 void SetSharedContext(GLContext* context);
39 GLContext* GetSharedContext();
55 typedef std::set<GLContext*> ContextSet;
58 GLContext* shared_context_;
Dscoped_binders.cc13 : state_restorer_(!GLContext::GetCurrent() in ScopedFrameBufferBinder()
15 : GLContext::GetCurrent()->GetGLStateRestorer()), in ScopedFrameBufferBinder()
24 DCHECK(!!GLContext::GetCurrent()); in ~ScopedFrameBufferBinder()
25 DCHECK_EQ(state_restorer_, GLContext::GetCurrent()->GetGLStateRestorer()); in ~ScopedFrameBufferBinder()
33 : state_restorer_(!GLContext::GetCurrent() in ScopedTextureBinder()
35 : GLContext::GetCurrent()->GetGLStateRestorer()), in ScopedTextureBinder()
60 DCHECK(!!GLContext::GetCurrent()); in ~ScopedTextureBinder()
61 DCHECK_EQ(state_restorer_, GLContext::GetCurrent()->GetGLStateRestorer()); in ~ScopedTextureBinder()
Dgl_gl_api_implementation.h19 class GLContext; variable
23 void InitializeGLExtensionBindingsGL(GLContext* context);
74 void Initialize(DriverGL* driver, GLContext* real_context);
77 bool MakeCurrent(GLContext* virtual_context, GLSurface* surface);
79 void OnReleaseVirtuallyCurrent(GLContext* virtual_context);
86 GLContext* real_context_;
89 GLContext* current_context_;
Dgl_share_group.cc20 void GLShareGroup::AddContext(GLContext* context) { in AddContext()
24 void GLShareGroup::RemoveContext(GLContext* context) { in RemoveContext()
31 GLContext* context = GetContext(); in GetHandle()
38 GLContext* GLShareGroup::GetContext() { in GetContext()
49 void GLShareGroup::SetSharedContext(GLContext* context) { in SetSharedContext()
54 GLContext* GLShareGroup::GetSharedContext() { in GetSharedContext()
Dgl_context_ozone.cc20 scoped_refptr<GLContext> GLContext::CreateGLContext( in CreateGLContext()
27 return scoped_refptr<GLContext>(new GLContextStub()); in CreateGLContext()
29 scoped_refptr<GLContext> context(new GLContextOSMesa(share_group)); in CreateGLContext()
35 scoped_refptr<GLContext> context(new GLContextEGL(share_group)); in CreateGLContext()
Dgl_context_win.cc23 scoped_refptr<GLContext> GLContext::CreateGLContext( in CreateGLContext()
30 scoped_refptr<GLContext> context(new GLContextOSMesa(share_group)); in CreateGLContext()
37 scoped_refptr<GLContext> context(new GLContextEGL(share_group)); in CreateGLContext()
44 scoped_refptr<GLContext> context(new GLContextWGL(share_group)); in CreateGLContext()
Dgl_context_x11.cc25 scoped_refptr<GLContext> GLContext::CreateGLContext( in CreateGLContext()
32 scoped_refptr<GLContext> context(new GLContextOSMesa(share_group)); in CreateGLContext()
39 scoped_refptr<GLContext> context(new GLContextGLX(share_group)); in CreateGLContext()
46 scoped_refptr<GLContext> context(new GLContextEGL(share_group)); in CreateGLContext()
Dgl_context_android.cc66 return GLContext::GetExtensions(); in GetExtensions()
68 return GLContext::GetExtensions() + " " + extensions; in GetExtensions()
74 scoped_refptr<GLContext> GLContext::CreateGLContext( in CreateGLContext()
79 return scoped_refptr<GLContext>(new GLContextStub()); in CreateGLContext()
81 scoped_refptr<GLContext> context; in CreateGLContext()
Dscoped_make_current.h13 class GLContext; variable
21 ScopedMakeCurrent(gfx::GLContext* context, gfx::GLSurface* surface);
27 scoped_refptr<gfx::GLContext> previous_context_;
29 scoped_refptr<gfx::GLContext> context_;
Dgl_context_mac.mm22 scoped_refptr<GLContext> GLContext::CreateGLContext(
26 TRACE_EVENT0("gpu", "GLContext::CreateGLContext");
30 scoped_refptr<GLContext> context;
41 scoped_refptr<GLContext> context(new GLContextOSMesa(share_group));
Dgl_bindings.h229 void InitializeExtensions(GLContext* context);
241 void InitializeExtensionBindings(GLContext* context);
246 void InitializeExtensionBindings(GLContext* context);
259 void InitializeExtensionBindings(GLContext* context);
273 void InitializeExtensionBindings(GLContext* context);
287 void InitializeExtensionBindings(GLContext* context);
Dgl_surface.h18 class GLContext; variable
76 virtual bool OnMakeCurrent(GLContext* context);
119 friend class GLContext; variable
142 virtual bool OnMakeCurrent(GLContext* context) OVERRIDE;
Dgl_gl_api_implementation.cc153 void DriverGL::InitializeExtensions(GLContext* context) { in InitializeExtensions()
198 void InitializeGLExtensionBindingsGL(GLContext* context) { in InitializeGLExtensionBindingsGL()
263 void VirtualGLApi::Initialize(DriverGL* driver, GLContext* real_context) { in Initialize()
284 bool VirtualGLApi::MakeCurrent(GLContext* virtual_context, GLSurface* surface) { in MakeCurrent()
299 DCHECK_EQ(real_context_, GLContext::GetRealCurrent()); in MakeCurrent()
330 void VirtualGLApi::OnReleaseVirtuallyCurrent(GLContext* virtual_context) { in OnReleaseVirtuallyCurrent()
Dscoped_make_current.cc13 ScopedMakeCurrent::ScopedMakeCurrent(gfx::GLContext* context, in ScopedMakeCurrent()
15 : previous_context_(gfx::GLContext::GetCurrent()), in ScopedMakeCurrent()
Dgl_osmesa_api_implementation.h14 class GLContext; variable
17 void InitializeGLExtensionBindingsOSMESA(GLContext* context);
Dgl_wgl_api_implementation.h14 class GLContext; variable
18 void InitializeGLExtensionBindingsWGL(GLContext* context);
Dgl_glx_api_implementation.h14 class GLContext; variable
18 void InitializeGLExtensionBindingsGLX(GLContext* context);
Dgl_egl_api_implementation.h14 class GLContext; variable
18 void InitializeGLExtensionBindingsEGL(GLContext* context);
/external/chromium_org/gpu/command_buffer/tests/
Dgl_manager.h15 class GLContext; variable
89 gfx::GLContext* context() { in context()
107 scoped_refptr<gfx::GLContext> context_;
117 static scoped_refptr<gfx::GLContext>* base_context_;
Dgl_manager.cc34 scoped_refptr<gfx::GLContext>* GLManager::base_context_;
99 gfx::GLContext* real_gl_context = NULL; in Initialize()
145 context_ = scoped_refptr<gfx::GLContext>(new gpu::GLContextVirtual( in Initialize()
151 context_ = scoped_refptr<gfx::GLContext>(new gpu::GLContextVirtual( in Initialize()
156 context_ = gfx::GLContext::CreateGLContext(share_group_.get(), in Initialize()
222 base_context_ = new scoped_refptr<gfx::GLContext>( in SetupBaseContext()
223 gfx::GLContext::CreateGLContext(base_share_group_->get(), in SetupBaseContext()
/external/chromium_org/gpu/command_buffer/service/
Dgl_context_virtual.h27 class GPU_EXPORT GLContextVirtual : public gfx::GLContext {
31 gfx::GLContext* shared_context,
56 scoped_refptr<gfx::GLContext> shared_context_;
Dasync_pixel_transfer_manager_share_group.h13 class GLContext; variable
22 explicit AsyncPixelTransferManagerShareGroup(gfx::GLContext* context);
/external/chromium_org/gpu/config/
Dgpu_info_collector.cc34 scoped_refptr<gfx::GLContext> InitializeGLContext(gfx::GLSurface* surface) { in InitializeGLContext()
36 scoped_refptr<gfx::GLContext> context( in InitializeGLContext()
37 gfx::GLContext::CreateGLContext(NULL, in InitializeGLContext()
94 scoped_refptr<gfx::GLContext> context(InitializeGLContext(surface.get())); in CollectGraphicsInfoGL()

1234