Index: tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp |
diff --git a/tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp b/tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp |
index af0abc58539c7add06c86799897dad3730f27b00..850adaaf257ace350b3962103bc05b5de5ead0cd 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() { |