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 #include "SkDisplayInclude.h" | 10 #include "SkDisplayInclude.h" |
11 #include "SkAnimateMaker.h" | 11 #include "SkAnimateMaker.h" |
12 #include "SkAnimator.h" | 12 #include "SkAnimator.h" |
13 | 13 |
14 #if 0 | |
15 #undef SK_MEMBER | |
16 #define SK_MEMBER(_member, _type) \ | |
17 { #_member, SK_OFFSETOF(BASE_CLASS::_A, _member), SkType_##_type, \ | |
18 sizeof(((BASE_CLASS::_A*) 0)->_member) / sizeof(SkScalar) } | |
19 #endif | |
20 | |
21 #if SK_USE_CONDENSED_INFO == 0 | 14 #if SK_USE_CONDENSED_INFO == 0 |
22 | 15 |
23 const SkMemberInfo SkInclude::fInfo[] = { | 16 const SkMemberInfo SkInclude::fInfo[] = { |
24 SK_MEMBER(src, String) | 17 SK_MEMBER(src, String) |
25 }; | 18 }; |
26 | 19 |
27 #endif | 20 #endif |
28 | 21 |
29 DEFINE_GET_MEMBER(SkInclude); | 22 DEFINE_GET_MEMBER(SkInclude); |
30 | 23 |
(...skipping 19 matching lines...) Expand all Loading... |
50 if (maker.getErrorCode() != SkXMLParserError::kNoError || maker.getNativ
eCode() != -1) { | 43 if (maker.getErrorCode() != SkXMLParserError::kNoError || maker.getNativ
eCode() != -1) { |
51 maker.setInnerError(&maker, src); | 44 maker.setInnerError(&maker, src); |
52 maker.setErrorCode(SkDisplayXMLParserError::kInInclude); | 45 maker.setErrorCode(SkDisplayXMLParserError::kInInclude); |
53 } else { | 46 } else { |
54 maker.setErrorNoun(src); | 47 maker.setErrorNoun(src); |
55 maker.setErrorCode(SkDisplayXMLParserError::kIncludeNameUnknownOrMis
sing); | 48 maker.setErrorCode(SkDisplayXMLParserError::kIncludeNameUnknownOrMis
sing); |
56 } | 49 } |
57 } | 50 } |
58 maker.fInInclude = false; | 51 maker.fInInclude = false; |
59 } | 52 } |
OLD | NEW |