Searched refs:TLSCurrentObjects (Results 1 – 2 of 2) sorted by relevance
/third_party/flutter/skia/tools/gpu/gl/command_buffer/ |
D | GLTestContext_command_buffer.cpp | 144 class TLSCurrentObjects { class 195 static TLSCurrentObjects* Get() { in Get() 196 return (TLSCurrentObjects*) SkTLS::Get(TLSCreate, TLSDelete); in Get() 198 static void* TLSCreate() { return new TLSCurrentObjects(); } in TLSCreate() 199 static void TLSDelete(void* objs) { delete (TLSCurrentObjects*)objs; } in TLSDelete() 206 auto display = TLSCurrentObjects::CurrentDisplay(); in context_restorer() 207 auto dsurface = TLSCurrentObjects::CurrentSurface(EGL_DRAW); in context_restorer() 208 auto rsurface = TLSCurrentObjects::CurrentSurface(EGL_READ); in context_restorer() 209 auto context = TLSCurrentObjects::CurrentContext(); in context_restorer() 211 TLSCurrentObjects::MakeCurrent(display, dsurface, rsurface, context); in context_restorer() [all …]
|
/third_party/skia/tools/gpu/gl/command_buffer/ |
D | GLTestContext_command_buffer.cpp | 144 class TLSCurrentObjects { class 195 static TLSCurrentObjects* Get() { in Get() 196 static thread_local TLSCurrentObjects objects; in Get() 205 auto display = TLSCurrentObjects::CurrentDisplay(); in context_restorer() 206 auto dsurface = TLSCurrentObjects::CurrentSurface(EGL_DRAW); in context_restorer() 207 auto rsurface = TLSCurrentObjects::CurrentSurface(EGL_READ); in context_restorer() 208 auto context = TLSCurrentObjects::CurrentContext(); in context_restorer() 210 TLSCurrentObjects::MakeCurrent(display, dsurface, rsurface, context); in context_restorer() 300 if (!TLSCurrentObjects::MakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in CommandBufferGLTestContext() 348 wasCurrent = (TLSCurrentObjects::CurrentContext() == fContext); in destroyGLContext() [all …]
|