Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: src/animator/SkAnimateBase.cpp

Issue 1135053002: stop calling SkScalarDiv (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix xpsdevice Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « samplecode/SampleStringArt.cpp ('k') | src/animator/SkAnimateField.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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\" ", SkScalarToFloat(SkScalarDiv(begin,1000))); 94 SkDebugf("begin=\"%g\" ", begin * 0.001);
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
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 }
OLDNEW
« no previous file with comments | « samplecode/SampleStringArt.cpp ('k') | src/animator/SkAnimateField.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698