Index: src/utils/SkRTConf.cpp |
diff --git a/src/utils/SkRTConf.cpp b/src/utils/SkRTConf.cpp |
index bc2031f2e847ee001a6a44509feb3189d5fdd55e..e0977fe42f21e39a21a04909610853dc0fdb9cc3 100644 |
--- a/src/utils/SkRTConf.cpp |
+++ b/src/utils/SkRTConf.cpp |
@@ -215,9 +215,10 @@ static inline void str_replace(char *s, char search, char replace) { |
template<typename T> bool SkRTConfRegistry::parse(const char *name, T* value) { |
SkString *str = NULL; |
- for (int i = 0 ; i < fConfigFileKeys.count() ; i++) { |
+ for (int i = fConfigFileKeys.count() - 1 ; i >= 0; i--) { |
if (fConfigFileKeys[i]->equals(name)) { |
str = fConfigFileValues[i]; |
+ break; |
} |
} |