Home | History | Annotate | Download | only in animator

Lines Matching refs:animate

142     SkAnimateBase* animate = fAnimators[index];
143 SkMSec duration = animate->dur;
151 // int entries = animate->entries();
153 // value.fOperand = animate->getValues()[entries - 1];
154 // value.fType = animate->getValuesType();
171 SkAnimateBase* animate = fAnimators[index];
173 int count = animate->components();
174 if (animate->formula.size() > 0) {
177 SkDEBUGCODE(bool success = ) animate->fFieldInfo->setValue(fMaker, &values, 0, 0, NULL,
178 animate->getValuesType(), animate->formula);
180 fApply.applyValues(index, values.begin(), count, animate->getValuesType(), time);
184 fApply.applyValues(index, values.get(), count, animate->getValuesType(), time);
201 SkAnimateBase* animate = fAnimators[index];
211 int count = animate->components();
212 if (animate->formula.size() > 0) {
215 SkDEBUGCODE(bool success = ) animate->fFieldInfo->setValue(fMaker, &values, 0, 0, NULL,
216 animate->getValuesType(), animate->formula);
218 fApply.applyValues(index, values.begin(), count, animate->getValuesType(), time);
222 fApply.applyValues(index, values.get(), count, animate->getValuesType(), time);
237 SkAnimateBase* animate = fAnimators[index];
239 animate->refresh(fMaker);
240 SkOperand* values = animate->getValues();
273 SkAnimateBase* animate = fAnimators[index];
275 if (animate->fHasEndEvent)
276 SkDebugf("%8x %8x active initState:\n", this, animate);
278 SkOperand* from = animate->getValues();
279 state.fStartTime = state.fBegin = apply->begin + animate->begin;
290 state.fUnpostedEndEvent = (SkBool8) animate->fHasEndEvent;
301 SkAnimateBase* animate = fAnimators[index];
302 SkASSERT(animate->getValuesType() == SkType_Float);
303 int components = animate->components();
304 SkOperand* from = animate->getValues();
305 SkOperand* to = &from[animate->components()];
324 fInterpolators[index]->setKeyFrame(0, 0, existingValues.begin(), animate->blend[0]);
325 fInterpolators[index]->setKeyFrame(1, fState[index].fDuration, to, animate->blend[0]);
332 SkAnimateBase* animate = fAnimators[index];
333 SkOperand* values = animate->getValues();
343 SkAnimateBase* animate = fAnimators[index];
345 if (animate->fHasEndEvent)
346 SkDebugf("%8x %8x active resetState: has end event\n", this, animate);
348 state.fStartTime = state.fBegin = fApply.begin + animate->begin;
373 SkAnimateBase* animate = fAnimators[index];
374 int entries = animate->entries();
377 int components = animate->components();
379 interpolator.reset(components, entries == 1 ? 2 : entries, animate->getValuesType());
380 interpolator.setMirror(SkToBool(animate->fMirror));
381 interpolator.setReset(SkToBool(animate->fReset));
382 interpolator.setRepeatCount(animate->repeat);
384 interpolator.setKeyFrame(0, 0, from, animate->blend[0]);
385 interpolator.setKeyFrame(1, duration, from, animate->blend[0]);
389 int blendIndex = SkMin32(animate->blend.count() - 1, entry);
391 animate->blend[blendIndex]);
472 // there should only be one animate object, not two, to go up and down
474 // of the existing animate object then remove it from the list