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 "SkTArray.h" |
12 #include "SkString.h" | 13 #include "SkString.h" |
13 #include "SkStream.h" | 14 #include "SkStream.h" |
14 | 15 #include "../private/SkTDict.h" |
15 #include "SkTDict.h" | |
16 #include "SkTArray.h" | |
17 | 16 |
18 /** \class SkRTConfBase | 17 /** \class SkRTConfBase |
19 Non-templated base class for the runtime configs | 18 Non-templated base class for the runtime configs |
20 */ | 19 */ |
21 | 20 |
22 class SkRTConfBase { | 21 class SkRTConfBase { |
23 public: | 22 public: |
24 SkRTConfBase(const char *name) : fName(name) {} | 23 SkRTConfBase(const char *name) : fName(name) {} |
25 virtual ~SkRTConfBase() {} | 24 virtual ~SkRTConfBase() {} |
26 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... |
185 // 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. |
186 const SkRTConf<T> *child_pointer = static_cast<const SkRTConf<T> *>(conf); | 185 const SkRTConf<T> *child_pointer = static_cast<const SkRTConf<T> *>(conf); |
187 return child_pointer && | 186 return child_pointer && |
188 fName == child_pointer->fName && | 187 fName == child_pointer->fName && |
189 fDescription == child_pointer->fDescription && | 188 fDescription == child_pointer->fDescription && |
190 fValue == child_pointer->fValue && | 189 fValue == child_pointer->fValue && |
191 fDefault == child_pointer->fDefault; | 190 fDefault == child_pointer->fDefault; |
192 } | 191 } |
193 | 192 |
194 #endif | 193 #endif |
OLD | NEW |