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

Unified Diff: src/utils/SkRTConf.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
« include/utils/SkRTConf.h ('K') | « src/core/SkGraphics.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« include/utils/SkRTConf.h ('K') | « src/core/SkGraphics.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698