aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-09-29 10:49:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-29 10:49:47 -0700
commit69e7eba6aef583eb0561019539b164d8e0eed025 (patch)
treed1a0ea3a2604179ee14092314cd884fb5c9c1089 /tools
parenta9c3c6aea5f7ade5aa2d112a221c458cd759222a (diff)
Use SkOnce to squelch command buffer spam
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;
}