diff options
author | brianosman <brianosman@google.com> | 2016-09-29 10:49:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-29 10:49:47 -0700 |
commit | 69e7eba6aef583eb0561019539b164d8e0eed025 (patch) | |
tree | d1a0ea3a2604179ee14092314cd884fb5c9c1089 /tools/gpu | |
parent | a9c3c6aea5f7ade5aa2d112a221c458cd759222a (diff) |
Use SkOnce to squelch command buffer spam
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2382793002
Review-Url: https://codereview.chromium.org/2382793002
Diffstat (limited to 'tools/gpu')
-rw-r--r-- | tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp | 3 |
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; } |