Lines Matching refs:index

32     int index;  in init()  local
33 for (index = 0; index < animators; index++) in init()
34 fInterpolators[index] = new SkOperandInterpolator; in init()
42 int index; in ~SkActive() local
43 for (index = 0; index < fSaveRestore.count(); index++) in ~SkActive()
44 delete[] fSaveRestore[index]; in ~SkActive()
45 for (index = 0; index < fSaveInterpolators.count(); index++) in ~SkActive()
46 delete[] fSaveInterpolators[index]; in ~SkActive()
47 for (index = 0; index < fInterpolators.count(); index++) in ~SkActive()
48 delete fInterpolators[index]; in ~SkActive()
61 int index; in append() local
67 for (index = oldCount; index < total; index++) in append()
68 fInterpolators[index] = new SkOperandInterpolator; in append()
75 for (index = 0; index < newCount; index++) { in append()
76 SkAnimateBase* test = animates[index]; in append()
78 SkActive::SkState& testState = fState[oldCount + index]; in append()
140 void SkActive::calcDurations(int index) in calcDurations() argument
142 SkAnimateBase* animate = fAnimators[index]; in calcDurations()
144 SkState& state = fState[index]; in calcDurations()
170 for (int index = 0; index < fAnimators.count(); index++) { in create() local
171 SkAnimateBase* animate = fAnimators[index]; in create()
172 SkOperandInterpolator& interpolator = *fInterpolators[index]; in create()
180 fApply.applyValues(index, values.begin(), count, animate->getValuesType(), time); in create()
184 fApply.applyValues(index, values.get(), count, animate->getValuesType(), time); in create()
200 for (int index = 0; index < fAnimators.count(); index++) { in immediate() local
201 SkAnimateBase* animate = fAnimators[index]; in immediate()
202 SkState& state = fState[index]; in immediate()
210 SkOperandInterpolator& interpolator = *fInterpolators[index]; in immediate()
218 fApply.applyValues(index, values.begin(), count, animate->getValuesType(), time); in immediate()
222 fApply.applyValues(index, values.get(), count, animate->getValuesType(), time); in immediate()
236 for (int index = 0; index < animators; index++) { in fixInterpolator() local
237 SkAnimateBase* animate = fAnimators[index]; in fixInterpolator()
241 setInterpolator(index, values); in fixInterpolator()
242 saveInterpolatorValues(index); in fixInterpolator()
244 restoreInterpolatorValues(index); in fixInterpolator()
271 for (int index = offset; index < count; index++) { in initState() local
272 SkState& state = fState[index]; in initState()
273 SkAnimateBase* animate = fAnimators[index]; in initState()
291 calcDurations(index); in initState()
292 setInterpolator(index, from); in initState()
300 for (int index = 0; index < fAnimators.count(); index++) { in pickUp() local
301 SkAnimateBase* animate = fAnimators[index]; in pickUp()
307 existing->fInterpolators[index]->timeToValues( in pickUp()
308 … existing->fState[index].fTicks - existing->fState[index].fStartTime, existingValues.begin()); in pickUp()
320 existing->fState[index].fDuration = (SkMSec) SkScalarMulDiv(fState[index].fDuration, in pickUp()
323 fInterpolators[index]->reset(components, 2, SkType_Float); in pickUp()
324 fInterpolators[index]->setKeyFrame(0, 0, existingValues.begin(), animate->blend[0]); in pickUp()
325 fInterpolators[index]->setKeyFrame(1, fState[index].fDuration, to, animate->blend[0]); in pickUp()
331 for (int index = 0; index < animators; index++) { in resetInterpolators() local
332 SkAnimateBase* animate = fAnimators[index]; in resetInterpolators()
334 setInterpolator(index, values); in resetInterpolators()
341 for (int index = 0; index < count; index++) { in resetState() local
342 SkState& state = fState[index]; in resetState()
343 SkAnimateBase* animate = fAnimators[index]; in resetState()
354 void SkActive::restoreInterpolatorValues(int index) { in restoreInterpolatorValues() argument
355 SkOperandInterpolator& interpolator = *fInterpolators[index]; in restoreInterpolatorValues()
356 index += fDrawIndex ; in restoreInterpolatorValues()
358 memcpy(interpolator.getValues(), fSaveInterpolators[index], count * sizeof(SkOperand)); in restoreInterpolatorValues()
361 void SkActive::saveInterpolatorValues(int index) { in saveInterpolatorValues() argument
362 SkOperandInterpolator& interpolator = *fInterpolators[index]; in saveInterpolatorValues()
363 index += fDrawIndex ; in saveInterpolatorValues()
366 fSaveInterpolators[index] = cache; in saveInterpolatorValues()
370 void SkActive::setInterpolator(int index, SkOperand* from) { in setInterpolator() argument
373 SkAnimateBase* animate = fAnimators[index]; in setInterpolator()
376 SkMSec duration = fState[index].fDuration; in setInterpolator()
378 SkOperandInterpolator& interpolator = *fInterpolators[index]; in setInterpolator()
399 for (int index = 0; index < count; index++) { in setSteps() local
400 SkState& state = fState[index]; in setSteps()
402 calcDurations(index); in setSteps()
410 for (int index = 0; index < count; index++) { in start() local
411 SkState& state = fState[index]; in start()
422 debugOut.append(fAnimators[index]->_id); in start()
424 debugOut.appendS32(fAnimators[index]->fStart - fMaker.fDebugTimeBase); in start()
429 SkMSec future = fAnimators[index]->fStart + state.fStartTime; in start()
446 state.fStartTime += fAnimators[index]->fStart; in start()
462 for (int index = 0; index < count; index++) { in validate() local
463 SkASSERT(fAnimators[index]); in validate()
464 SkASSERT(fInterpolators[index]); in validate()