From 69e7eba6aef583eb0561019539b164d8e0eed025 Mon Sep 17 00:00:00 2001 From: brianosman Date: Thu, 29 Sep 2016 10:49:46 -0700 Subject: 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 --- tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/gpu/gl') 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; } -- cgit v1.2.3