Lines Matching refs:maker

73 void SkApply::activate(SkAnimateMaker& maker) {  in activate()  argument
82 fActive = new SkActive(*this, maker); in activate()
84 maker.appendActive(fActive); in activate()
163 SkDisplayable* SkApply::deepCopy(SkAnimateMaker* maker) { in deepCopy() argument
166 SkApply* result = (SkApply*) INHERITED::deepCopy(maker); in deepCopy()
170 SkAnimateBase* anim = (SkAnimateBase*) (*animPtr)->deepCopy(maker); in deepCopy()
172 maker->helperAdd(anim); in deepCopy()
186 bool SkApply::draw(SkAnimateMaker& maker) { in draw() argument
192 enable(maker); in draw()
194 activate(maker); in draw()
197 bool result = interpolate(maker, maker.getInTime()); in draw()
200 result |= scope->draw(maker); in draw()
211 void SkApply::dump(SkAnimateMaker* maker) { in dump() argument
212 dumpBase(maker); in dump()
241 scope->dump(maker); in dump()
251 animator->dump(maker); in dump()
257 dumpEnd(maker); in dump()
263 bool SkApply::enable(SkAnimateMaker& maker) { in enable() argument
267 enableDynamic(maker); in enable()
268 if (maker.fError.hasError()) in enable()
274 animator->fStart = maker.fEnableTime; in enable()
291 activate(maker); // for non-drawables like post, prime them here in enable()
295 enableCreate(maker); in enable()
301 refresh(maker); in enable()
302 SkDisplayList& displayList = maker.fDisplayList; in enable()
306 SkMSec time = maker.getAppTime(); in enable()
307 debugOut.appendS32(time - maker.fDebugTimeBase); in enable()
311 debugOut.appendS32(maker.fEnableTime - maker.fDebugTimeBase); in enable()
315 activate(maker); // for non-drawables like post, prime them here in enable()
320 interpolate(maker, maker.fEnableTime); in enable()
323 scope->enable(maker); in enable()
328 bool wasActive = inactivate(maker); // start fresh in enable()
330 activate(maker); in enable()
331 interpolate(maker, maker.fEnableTime); in enable()
360 maker.setErrorCode(SkDisplayXMLParserError::kDisplayTreeTooDeep); in enable()
369 apply->activate(maker); in enable()
379 … (*parentList)[oldApply] = (SkADrawable*) SkDisplayType::CreateInstance(&maker, SkType_Apply); in enable()
393 void SkApply::enableCreate(SkAnimateMaker& maker) { in enableCreate() argument
397 bool success = maker.computeID(scope, this, &newID); in enableCreate()
400 if (maker.find(newID.c_str(), NULL)) in enableCreate()
402 SkApply* copy = (SkApply*) deepCopy(&maker); // work on copy of animator state in enableCreate()
405 SkADrawable* copyScope = copy->scope = (SkADrawable*) scope->deepCopy(&maker); in enableCreate()
407 if (copyScope->resolveIDs(maker, scope, this)) { in enableCreate()
412 maker.setID(copyScope, newID); in enableCreate()
413 if (copy->resolveIDs(maker, this, this)) { // fix up all fields, including target in enableCreate()
417 copy->activate(maker); in enableCreate()
418 copy->interpolate(maker, step * SK_MSec1); in enableCreate()
419 maker.removeActive(copy->fActive); in enableCreate()
425 void SkApply::enableDynamic(SkAnimateMaker& maker) { in enableDynamic() argument
428 bool success = SkAnimatorScript::EvaluateDisplayable(maker, this, dynamicScope.c_str(), in enableDynamic()
433 int old = maker.fDisplayList.findGroup(scope, &pList, &pGroup, &found, &gList); in enableDynamic()
448 onEndElement(maker); in enableDynamic()
450 maker.removeActive(fActive); in enableDynamic()
530 bool SkApply::inactivate(SkAnimateMaker& maker) { in inactivate() argument
533 maker.removeActive(fActive); in inactivate()
543 bool SkApply::interpolate(SkAnimateMaker& maker, SkMSec rawTime) { in interpolate() argument
548 SkMSec time = maker.getAppTime(); in interpolate()
555 debugOut.appendS32(time - maker.fDebugTimeBase); in interpolate()
579 animate->onEndElement(maker); in interpolate()
590 maker.delayEnable(this, state.fStartTime); in interpolate()
624 maker.postOnEnd(animate, state.fBegin + state.fDuration); in interpolate()
625maker.fAdjustedStart = 0; // !!! left over from synchronizing animation days, undoubtably out o… in interpolate()
632 … SkDEBUGCODE(bool success = ) animate->fFieldInfo->setValue(maker, &formulaValues, 0, 0, NULL, in interpolate()
655 void SkApply::onEndElement(SkAnimateMaker& maker) in onEndElement() argument
661 maker.setErrorCode(SkDisplayXMLParserError::kApplyScopesItself); in onEndElement()
678 anim->setTarget(maker); in onEndElement()
679 anim->onEndElement(maker); // allows animate->fFieldInfo to be set in onEndElement()
692 void SkApply::refresh(SkAnimateMaker& maker) { in refresh() argument
695 animate->onEndElement(maker); in refresh()
706 bool SkApply::resolveIDs(SkAnimateMaker& maker, SkDisplayable* original, SkApply* apply) { // rep… in resolveIDs() argument
707 if (resolveField(maker, apply, &dynamicScope) == false) in resolveIDs()
713 maker.resolveID(animator, *origPtr++); in resolveIDs()
714 if (resolveField(maker, this, &animator->target) == false) in resolveIDs()
716 if (resolveField(maker, this, &animator->from) == false) in resolveIDs()
718 if (resolveField(maker, this, &animator->to) == false) in resolveIDs()
720 if (resolveField(maker, this, &animator->formula) == false) in resolveIDs()
724 onEndElement(maker); in resolveIDs()
728 bool SkApply::resolveField(SkAnimateMaker& maker, SkDisplayable* parent, SkString* str) { in resolveField() argument
733 return SkAnimatorScript::EvaluateString(maker, this, parent, script, str); in resolveField()