diff options
Diffstat (limited to 'tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp')
| -rw-r--r-- | tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp b/tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp index af0abc5853..850adaaf25 100644 --- a/tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp +++ b/tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp @@ -127,9 +127,9 @@ static GrGLFuncPtr command_buffer_get_gl_proc(void* ctx, const char name[]) { return gfGetProcAddress(name); } -SK_DECLARE_STATIC_ONCE(loadCommandBufferOnce); static void load_command_buffer_once() { - SkOnce(&loadCommandBufferOnce, load_command_buffer_functions); + static SkOnce once; + once(load_command_buffer_functions); } static const GrGLInterface* create_command_buffer_interface() { |
