Index: src/core/SkGraphics.cpp |
diff --git a/src/core/SkGraphics.cpp b/src/core/SkGraphics.cpp |
index 01b1432ef0345ae3d99422f799ba9ff0d6982b3d..d7022b770b7dea89058b1a66bca92dfd2c832b86 100644 |
--- a/src/core/SkGraphics.cpp |
+++ b/src/core/SkGraphics.cpp |
@@ -22,6 +22,7 @@ |
#include "SkPixelRef.h" |
#include "SkRefCnt.h" |
#include "SkResourceCache.h" |
+#include "SkRTConf.h" |
#include "SkScalerContext.h" |
#include "SkShader.h" |
#include "SkStream.h" |
@@ -48,6 +49,15 @@ |
// SkGraphics::Init() must be thread-safe and idempotent. |
SkCpu::CacheRuntimeFeatures(); |
SkOpts::Init(); |
+ |
+#ifdef SK_DEBUG |
+ skRTConfRegistry().possiblyDumpFile(); |
+ skRTConfRegistry().validate(); |
+ if (skRTConfRegistry().hasNonDefault()) { |
+ SkDebugf("Non-default runtime configuration options:\n"); |
+ skRTConfRegistry().printNonDefault(); |
+ } |
+#endif |
} |
/////////////////////////////////////////////////////////////////////////////// |