diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-30 15:54:29 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-30 15:54:29 +0000 |
commit | 0f298cc12561ce1d59317be0b7ab6938baeaebcd (patch) | |
tree | 882f80fd651ce09c8ecbf7a0236dc8d6caa11e31 /bench/benchmain.cpp | |
parent | c4d297398a8f3a82fd3056e2667bae5df1238b72 (diff) |
Use SkDebugf to print when GrContext can't be created for a config.
Also, don't label it an "Error". New output matches that of GM.
BUG=skia:2494
R=caryclark@google.com, bensong@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/264563008
git-svn-id: http://skia.googlecode.com/svn/trunk@14470 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/benchmain.cpp')
-rw-r--r-- | bench/benchmain.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp index 949275d588..3080a0f022 100644 --- a/bench/benchmain.cpp +++ b/bench/benchmain.cpp @@ -368,17 +368,16 @@ int tool_main(int argc, char** argv) { if (SkBenchmark::kGPU_Backend == config.backend) { GrContext* context = gContextFactory.get(config.contextType); if (NULL == context) { - logger.logError(SkStringPrintf( - "Error creating GrContext for config %s. Config will be skipped.\n", - config.name)); + SkDebugf("GrContext could not be created for config %s. Config will be skipped.\n", + config.name); configs.remove(i); --i; continue; } if (config.sampleCount > context->getMaxSampleCount()){ - logger.logError(SkStringPrintf( - "Sample count (%d) for config %s is unsupported. Config will be skipped.\n", - config.sampleCount, config.name)); + SkDebugf( + "Sample count (%d) for config %s is not supported. Config will be skipped.\n", + config.sampleCount, config.name); configs.remove(i); --i; continue; |