Index: src/utils/SkRTConf.cpp |
diff --git a/src/utils/SkRTConf.cpp b/src/utils/SkRTConf.cpp |
index 895cfa5e3103c7093a12bfd6518b1b3bc96b6301..4dfaee1b397f1d990c67b6e6edafb321818afdf7 100644 |
--- a/src/utils/SkRTConf.cpp |
+++ b/src/utils/SkRTConf.cpp |
@@ -105,6 +105,18 @@ void SkRTConfRegistry::printAll(const char *fname) const { |
delete o; |
} |
+int SkRTConfRegistry::countNonDefault() const { |
+ int count = 0; |
+ ConfMap::Iter iter(fConfs); |
+ SkTDArray<SkRTConfBase *> *confArray; |
+ while (iter.next(&confArray)) { |
+ if (!confArray->getAt(0)->isDefault()) { |
+ ++count; |
+ } |
+ } |
+ return count; |
+} |
+ |
void SkRTConfRegistry::printNonDefault(const char *fname) const { |
SkWStream *o; |