| 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 "SkAnimate.h" | 10 #include "SkAnimate.h" |
| 11 #include "SkAnimateMaker.h" | 11 #include "SkAnimateMaker.h" |
| 12 #include "SkDrawable.h" | 12 #include "SkADrawable.h" |
| 13 #include "SkParse.h" | 13 #include "SkParse.h" |
| 14 | 14 |
| 15 #if SK_USE_CONDENSED_INFO == 0 | 15 #if SK_USE_CONDENSED_INFO == 0 |
| 16 | 16 |
| 17 const SkMemberInfo SkAnimate::fInfo[] = { | 17 const SkMemberInfo SkAnimate::fInfo[] = { |
| 18 SK_MEMBER_INHERITED | 18 SK_MEMBER_INHERITED |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 #endif | 21 #endif |
| 22 | 22 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 from.set("0"); | 102 from.set("0"); |
| 103 to.set("dur"); | 103 to.set("dur"); |
| 104 outType = SkType_MSec; | 104 outType = SkType_MSec; |
| 105 } | 105 } |
| 106 int max = fComponents * 2; | 106 int max = fComponents * 2; |
| 107 fValues.setCount(max); | 107 fValues.setCount(max); |
| 108 memset(fValues.begin(), 0, max * sizeof(fValues.begin()[0])); | 108 memset(fValues.begin(), 0, max * sizeof(fValues.begin()[0])); |
| 109 fFieldInfo->setValue(maker, &fValues, fFieldOffset, max, this, outType, from
); | 109 fFieldInfo->setValue(maker, &fValues, fFieldOffset, max, this, outType, from
); |
| 110 fFieldInfo->setValue(maker, &fValues, fComponents + fFieldOffset, max, this,
outType, to); | 110 fFieldInfo->setValue(maker, &fValues, fComponents + fFieldOffset, max, this,
outType, to); |
| 111 } | 111 } |
| OLD | NEW |