aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp b/tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp
index c644d998e5..32e5de4626 100644
--- a/tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp
+++ b/tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp
@@ -185,7 +185,8 @@ void CommandBufferGLTestContext::initializeGLContext(void *nativeWindow, const i
const int *surfaceAttribs) {
load_command_buffer_once();
if (!gfFunctionsLoadedSuccessfully) {
- SkDebugf("Command Buffer: Could not load EGL functions.\n");
+ static SkOnce once;
+ once([] { SkDebugf("Command Buffer: Could not load EGL functions.\n"); });
return;
}