| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google, Inc. | 2 * Copyright 2013 Google, Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 | 8 |
| 9 #ifndef SkRTConf_DEFINED | 9 #ifndef SkRTConf_DEFINED |
| 10 #define SkRTConf_DEFINED | 10 #define SkRTConf_DEFINED |
| 11 | 11 |
| 12 #include "../private/SkTDArray.h" |
| 12 #include "../private/SkTDict.h" | 13 #include "../private/SkTDict.h" |
| 13 #include "SkString.h" | 14 #include "SkString.h" |
| 14 #include "SkStream.h" | 15 #include "SkStream.h" |
| 15 #include "SkTDArray.h" | |
| 16 | 16 |
| 17 /** \class SkRTConfBase | 17 /** \class SkRTConfBase |
| 18 Non-templated base class for the runtime configs | 18 Non-templated base class for the runtime configs |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 class SkRTConfBase { | 21 class SkRTConfBase { |
| 22 public: | 22 public: |
| 23 SkRTConfBase(const char *name) : fName(name) {} | 23 SkRTConfBase(const char *name) : fName(name) {} |
| 24 virtual ~SkRTConfBase() {} | 24 virtual ~SkRTConfBase() {} |
| 25 virtual const char *getName() const { return fName.c_str(); } | 25 virtual const char *getName() const { return fName.c_str(); } |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // static_cast here is okay because there's only one kind of child class. | 184 // static_cast here is okay because there's only one kind of child class. |
| 185 const SkRTConf<T> *child_pointer = static_cast<const SkRTConf<T> *>(conf); | 185 const SkRTConf<T> *child_pointer = static_cast<const SkRTConf<T> *>(conf); |
| 186 return child_pointer && | 186 return child_pointer && |
| 187 fName == child_pointer->fName && | 187 fName == child_pointer->fName && |
| 188 fDescription == child_pointer->fDescription && | 188 fDescription == child_pointer->fDescription && |
| 189 fValue == child_pointer->fValue && | 189 fValue == child_pointer->fValue && |
| 190 fDefault == child_pointer->fDefault; | 190 fDefault == child_pointer->fDefault; |
| 191 } | 191 } |
| 192 | 192 |
| 193 #endif | 193 #endif |
| OLD | NEW |