Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2241)

Unified Diff: bench/benchmain.cpp

Issue 264563008: Use SkDebugf to print when GrContext can't be created for a config. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/benchmain.cpp
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
index 949275d588c6d1be73d2b599d9de5c1607843c9a..3080a0f022e8a20e522ba6332cb2afa84e80dd8a 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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698