Home | History | Annotate | Download | only in client

Lines Matching refs:gpu

5 #include "gpu/command_buffer/client/gles2_lib.h"
7 #include "gpu/command_buffer/common/thread_local.h"
19 static gpu::ThreadLocalKey g_gl_context_key;
23 g_gl_context_key = gpu::ThreadLocalAlloc();
27 gpu::ThreadLocalFree(g_gl_context_key);
31 gpu::gles2::GLES2Interface* GetGLContext() {
32 return static_cast<gpu::gles2::GLES2Interface*>(
33 gpu::ThreadLocalGetValue(g_gl_context_key));
36 void SetGLContext(gpu::gles2::GLES2Interface* context) {
37 gpu::ThreadLocalSetValue(g_gl_context_key, context);