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