OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkMemberInfo_DEFINED | 10 #ifndef SkMemberInfo_DEFINED |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 #define SK_MEMBER_PROPERTY(_member, _type) \ | 143 #define SK_MEMBER_PROPERTY(_member, _type) \ |
144 {#_member, (size_t) (-1 - SK_PROPERTY(_member)), SkType_MemberProperty, \ | 144 {#_member, (size_t) (-1 - SK_PROPERTY(_member)), SkType_MemberProperty, \ |
145 (int) SkType_##_type } | 145 (int) SkType_##_type } |
146 | 146 |
147 #if SK_USE_CONDENSED_INFO == 0 | 147 #if SK_USE_CONDENSED_INFO == 0 |
148 | 148 |
149 #define DECLARE_PRIVATE_MEMBER_INFO(_type) \ | 149 #define DECLARE_PRIVATE_MEMBER_INFO(_type) \ |
150 public: \ | 150 public: \ |
151 static const SkMemberInfo fInfo[]; \ | 151 static const SkMemberInfo fInfo[]; \ |
152 static const int fInfoCount; \ | 152 static const int fInfoCount; \ |
153 const SkMemberInfo* getMember(int index) SK_OVERRIDE; \ | 153 const SkMemberInfo* getMember(int index) override; \ |
154 const SkMemberInfo* getMember(const char name[]) SK_OVERRIDE; \ | 154 const SkMemberInfo* getMember(const char name[]) override; \ |
155 typedef Sk##_type BASE_CLASS | 155 typedef Sk##_type BASE_CLASS |
156 | 156 |
157 #define DECLARE_MEMBER_INFO(_type) \ | 157 #define DECLARE_MEMBER_INFO(_type) \ |
158 public: \ | 158 public: \ |
159 static const SkMemberInfo fInfo[]; \ | 159 static const SkMemberInfo fInfo[]; \ |
160 static const int fInfoCount; \ | 160 static const int fInfoCount; \ |
161 const SkMemberInfo* getMember(int index) SK_OVERRIDE; \ | 161 const SkMemberInfo* getMember(int index) override; \ |
162 const SkMemberInfo* getMember(const char name[]) SK_OVERRIDE; \ | 162 const SkMemberInfo* getMember(const char name[]) override; \ |
163 SkDisplayTypes getType() const SK_OVERRIDE { return SkType_##_type; } \ | 163 SkDisplayTypes getType() const override { return SkType_##_type; } \ |
164 typedef Sk##_type BASE_CLASS | 164 typedef Sk##_type BASE_CLASS |
165 | 165 |
166 #define DECLARE_DRAW_MEMBER_INFO(_type) \ | 166 #define DECLARE_DRAW_MEMBER_INFO(_type) \ |
167 public: \ | 167 public: \ |
168 static const SkMemberInfo fInfo[]; \ | 168 static const SkMemberInfo fInfo[]; \ |
169 static const int fInfoCount; \ | 169 static const int fInfoCount; \ |
170 const SkMemberInfo* getMember(int index) SK_OVERRIDE; \ | 170 const SkMemberInfo* getMember(int index) override; \ |
171 const SkMemberInfo* getMember(const char name[]) SK_OVERRIDE; \ | 171 const SkMemberInfo* getMember(const char name[]) override; \ |
172 SkDisplayTypes getType() const SK_OVERRIDE { return SkType_##_type; } \ | 172 SkDisplayTypes getType() const override { return SkType_##_type; } \ |
173 typedef SkDraw##_type BASE_CLASS | 173 typedef SkDraw##_type BASE_CLASS |
174 | 174 |
175 #define DECLARE_DISPLAY_MEMBER_INFO(_type) \ | 175 #define DECLARE_DISPLAY_MEMBER_INFO(_type) \ |
176 public: \ | 176 public: \ |
177 static const SkMemberInfo fInfo[]; \ | 177 static const SkMemberInfo fInfo[]; \ |
178 static const int fInfoCount; \ | 178 static const int fInfoCount; \ |
179 const SkMemberInfo* getMember(int index) SK_OVERRIDE; \ | 179 const SkMemberInfo* getMember(int index) override; \ |
180 const SkMemberInfo* getMember(const char name[]) SK_OVERRIDE; \ | 180 const SkMemberInfo* getMember(const char name[]) override; \ |
181 SkDisplayTypes getType() const SK_OVERRIDE { return SkType_##_type; } \ | 181 SkDisplayTypes getType() const override { return SkType_##_type; } \ |
182 typedef SkDisplay##_type BASE_CLASS | 182 typedef SkDisplay##_type BASE_CLASS |
183 | 183 |
184 #define DECLARE_EMPTY_MEMBER_INFO(_type) \ | 184 #define DECLARE_EMPTY_MEMBER_INFO(_type) \ |
185 public: \ | 185 public: \ |
186 SkDisplayTypes getType() const SK_OVERRIDE { return SkType_##_type; } | 186 SkDisplayTypes getType() const override { return SkType_##_type; } |
187 | 187 |
188 #define DECLARE_EXTRAS_MEMBER_INFO(_type) \ | 188 #define DECLARE_EXTRAS_MEMBER_INFO(_type) \ |
189 public: \ | 189 public: \ |
190 static const SkMemberInfo fInfo[]; \ | 190 static const SkMemberInfo fInfo[]; \ |
191 static const int fInfoCount; \ | 191 static const int fInfoCount; \ |
192 const SkMemberInfo* getMember(int index) SK_OVERRIDE; \ | 192 const SkMemberInfo* getMember(int index) override; \ |
193 const SkMemberInfo* getMember(const char name[]) SK_OVERRIDE; \ | 193 const SkMemberInfo* getMember(const char name[]) override; \ |
194 SkDisplayTypes fType; \ | 194 SkDisplayTypes fType; \ |
195 SkDisplayTypes getType() const SK_OVERRIDE { return fType; } \ | 195 SkDisplayTypes getType() const override { return fType; } \ |
196 typedef _type BASE_CLASS | 196 typedef _type BASE_CLASS |
197 | 197 |
198 #define DECLARE_NO_VIRTUALS_MEMBER_INFO(_type) \ | 198 #define DECLARE_NO_VIRTUALS_MEMBER_INFO(_type) \ |
199 public: \ | 199 public: \ |
200 static const SkMemberInfo fInfo[]; \ | 200 static const SkMemberInfo fInfo[]; \ |
201 static const int fInfoCount; \ | 201 static const int fInfoCount; \ |
202 typedef Sk##_type BASE_CLASS | 202 typedef Sk##_type BASE_CLASS |
203 | 203 |
204 #define DEFINE_GET_MEMBER(_class) \ | 204 #define DEFINE_GET_MEMBER(_class) \ |
205 const SkMemberInfo* _class::getMember(int index) { \ | 205 const SkMemberInfo* _class::getMember(int index) { \ |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 #define DECLARE_NO_VIRTUALS_MEMBER_INFO(_type) \ | 261 #define DECLARE_NO_VIRTUALS_MEMBER_INFO(_type) \ |
262 public: \ | 262 public: \ |
263 typedef Sk##_type BASE_CLASS | 263 typedef Sk##_type BASE_CLASS |
264 | 264 |
265 #define DEFINE_GET_MEMBER(_class) | 265 #define DEFINE_GET_MEMBER(_class) |
266 #define DEFINE_NO_VIRTUALS_GET_MEMBER(_class) | 266 #define DEFINE_NO_VIRTUALS_GET_MEMBER(_class) |
267 | 267 |
268 #endif | 268 #endif |
269 | 269 |
270 #endif // SkMemberInfo_DEFINED | 270 #endif // SkMemberInfo_DEFINED |
OLD | NEW |