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

Unified Diff: src/core/SkGraphics.cpp

Issue 133583003: Reduce verbosity of SkGraphics::Init in default case. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 11 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
Index: src/core/SkGraphics.cpp
diff --git a/src/core/SkGraphics.cpp b/src/core/SkGraphics.cpp
index 51521e42b1e2189cffa45e2a9a85d7d2a7158aaa..4769ffe2ecbc7c35b1e3382eff850fa4cc80a331 100644
--- a/src/core/SkGraphics.cpp
+++ b/src/core/SkGraphics.cpp
@@ -55,8 +55,10 @@ void SkGraphics::Init() {
#ifdef SK_DEVELOPER
skRTConfRegistry().possiblyDumpFile();
skRTConfRegistry().validate();
- SkDebugf("Non-default runtime configuration options:\n");
- skRTConfRegistry().printNonDefault( );
+ if (skRTConfRegistry().countNonDefault() > 0) {
+ SkDebugf("Non-default runtime configuration options:\n");
+ skRTConfRegistry().printNonDefault();
+ }
#endif
#ifdef BUILD_EMBOSS_TABLE
« include/utils/SkRTConf.h ('K') | « include/utils/SkRTConf.h ('k') | src/utils/SkRTConf.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698