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 "SkAnimateBase.h" | 10 #include "SkAnimateBase.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 else if (fFieldInfo) | 84 else if (fFieldInfo) |
85 SkDebugf("field=\"%s\" ", fFieldInfo->fName); | 85 SkDebugf("field=\"%s\" ", fFieldInfo->fName); |
86 if (formula.size() > 0) | 86 if (formula.size() > 0) |
87 SkDebugf("formula=\"%s\" ", formula.c_str()); | 87 SkDebugf("formula=\"%s\" ", formula.c_str()); |
88 else { | 88 else { |
89 if (from.size() > 0) | 89 if (from.size() > 0) |
90 SkDebugf("from=\"%s\" ", from.c_str()); | 90 SkDebugf("from=\"%s\" ", from.c_str()); |
91 SkDebugf("to=\"%s\" ", to.c_str()); | 91 SkDebugf("to=\"%s\" ", to.c_str()); |
92 } | 92 } |
93 if (begin != 0) { | 93 if (begin != 0) { |
94 SkDebugf("begin=\"%g\" ", begin * 0.001); | 94 SkDebugf("begin=\"%g\" ", SkScalarToFloat(SkScalarDiv(begin,1000))); |
95 } | 95 } |
96 } | 96 } |
97 #endif | 97 #endif |
98 | 98 |
99 SkDisplayable* SkAnimateBase::getParent() const { | 99 SkDisplayable* SkAnimateBase::getParent() const { |
100 return (SkDisplayable*) fApply; | 100 return (SkDisplayable*) fApply; |
101 } | 101 } |
102 | 102 |
103 bool SkAnimateBase::getProperty(int index, SkScriptValue* value) const { | 103 bool SkAnimateBase::getProperty(int index, SkScriptValue* value) const { |
104 int boolResult; | 104 int boolResult; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 return; | 226 return; |
227 } | 227 } |
228 if (fApply && fApply->getMode() != SkApply::kMode_create) | 228 if (fApply && fApply->getMode() != SkApply::kMode_create) |
229 target.reset(); | 229 target.reset(); |
230 } | 230 } |
231 } | 231 } |
232 | 232 |
233 bool SkAnimateBase::targetNeedsInitialization() const { | 233 bool SkAnimateBase::targetNeedsInitialization() const { |
234 return false; | 234 return false; |
235 } | 235 } |
OLD | NEW |