Lines Matching refs:maker
81 void SkApply::activate(SkAnimateMaker& maker) { in activate() argument
90 fActive = new SkActive(*this, maker); in activate()
92 maker.appendActive(fActive); in activate()
170 SkDisplayable* SkApply::deepCopy(SkAnimateMaker* maker) { in deepCopy() argument
173 SkApply* result = (SkApply*) INHERITED::deepCopy(maker); in deepCopy()
177 SkAnimateBase* anim = (SkAnimateBase*) (*animPtr)->deepCopy(maker); in deepCopy()
179 maker->helperAdd(anim); in deepCopy()
193 bool SkApply::draw(SkAnimateMaker& maker) { in draw() argument
199 enable(maker); in draw()
201 activate(maker); in draw()
204 bool result = interpolate(maker, maker.getInTime()); in draw()
207 result |= scope->draw(maker); in draw()
218 void SkApply::dump(SkAnimateMaker* maker) { in dump() argument
219 dumpBase(maker); in dump()
248 scope->dump(maker); in dump()
258 animator->dump(maker); in dump()
264 dumpEnd(maker); in dump()
270 bool SkApply::enable(SkAnimateMaker& maker) { in enable() argument
274 enableDynamic(maker); in enable()
275 if (maker.fError.hasError()) in enable()
281 animator->fStart = maker.fEnableTime; in enable()
298 activate(maker); // for non-drawables like post, prime them here in enable()
302 enableCreate(maker); in enable()
308 refresh(maker); in enable()
309 SkDisplayList& displayList = maker.fDisplayList; in enable()
313 SkMSec time = maker.getAppTime(); in enable()
314 debugOut.appendS32(time - maker.fDebugTimeBase); in enable()
318 debugOut.appendS32(maker.fEnableTime - maker.fDebugTimeBase); in enable()
322 activate(maker); // for non-drawables like post, prime them here in enable()
327 interpolate(maker, maker.fEnableTime); in enable()
330 scope->enable(maker); in enable()
335 bool wasActive = inactivate(maker); // start fresh in enable()
337 activate(maker); in enable()
338 interpolate(maker, maker.fEnableTime); in enable()
367 maker.setErrorCode(SkDisplayXMLParserError::kDisplayTreeTooDeep); in enable()
376 apply->activate(maker); in enable()
386 … (*parentList)[oldApply] = (SkDrawable*) SkDisplayType::CreateInstance(&maker, SkType_Apply); in enable()
400 void SkApply::enableCreate(SkAnimateMaker& maker) { in enableCreate() argument
404 bool success = maker.computeID(scope, this, &newID); in enableCreate()
407 if (maker.find(newID.c_str(), NULL)) in enableCreate()
409 SkApply* copy = (SkApply*) deepCopy(&maker); // work on copy of animator state in enableCreate()
412 SkDrawable* copyScope = copy->scope = (SkDrawable*) scope->deepCopy(&maker); in enableCreate()
414 if (copyScope->resolveIDs(maker, scope, this)) { in enableCreate()
419 maker.setID(copyScope, newID); in enableCreate()
420 if (copy->resolveIDs(maker, this, this)) { // fix up all fields, including target in enableCreate()
424 copy->activate(maker); in enableCreate()
425 copy->interpolate(maker, step * SK_MSec1); in enableCreate()
426 maker.removeActive(copy->fActive); in enableCreate()
432 void SkApply::enableDynamic(SkAnimateMaker& maker) { in enableDynamic() argument
435 bool success = SkAnimatorScript::EvaluateDisplayable(maker, this, dynamicScope.c_str(), in enableDynamic()
440 int old = maker.fDisplayList.findGroup(scope, &pList, &pGroup, &found, &gList); in enableDynamic()
455 onEndElement(maker); in enableDynamic()
457 maker.removeActive(fActive); in enableDynamic()
537 bool SkApply::inactivate(SkAnimateMaker& maker) { in inactivate() argument
540 maker.removeActive(fActive); in inactivate()
550 bool SkApply::interpolate(SkAnimateMaker& maker, SkMSec rawTime) { in interpolate() argument
555 SkMSec time = maker.getAppTime(); in interpolate()
562 debugOut.appendS32(time - maker.fDebugTimeBase); in interpolate()
586 animate->onEndElement(maker); in interpolate()
597 maker.delayEnable(this, state.fStartTime); in interpolate()
631 maker.postOnEnd(animate, state.fBegin + state.fDuration); in interpolate()
632 …maker.fAdjustedStart = 0; // !!! left over from synchronizing animation days, undoubtably out o… in interpolate()
639 bool success = animate->fFieldInfo->setValue(maker, &formulaValues, 0, 0, NULL, in interpolate()
662 void SkApply::onEndElement(SkAnimateMaker& maker) in onEndElement() argument
668 maker.setErrorCode(SkDisplayXMLParserError::kApplyScopesItself); in onEndElement()
685 anim->setTarget(maker); in onEndElement()
686 anim->onEndElement(maker); // allows animate->fFieldInfo to be set in onEndElement()
699 void SkApply::refresh(SkAnimateMaker& maker) { in refresh() argument
702 animate->onEndElement(maker); in refresh()
713 bool SkApply::resolveIDs(SkAnimateMaker& maker, SkDisplayable* original, SkApply* apply) { // rep… in resolveIDs() argument
714 if (resolveField(maker, apply, &dynamicScope) == false) in resolveIDs()
720 maker.resolveID(animator, *origPtr++); in resolveIDs()
721 if (resolveField(maker, this, &animator->target) == false) in resolveIDs()
723 if (resolveField(maker, this, &animator->from) == false) in resolveIDs()
725 if (resolveField(maker, this, &animator->to) == false) in resolveIDs()
727 if (resolveField(maker, this, &animator->formula) == false) in resolveIDs()
731 onEndElement(maker); in resolveIDs()
735 bool SkApply::resolveField(SkAnimateMaker& maker, SkDisplayable* parent, SkString* str) { in resolveField() argument
740 return SkAnimatorScript::EvaluateString(maker, this, parent, script, str); in resolveField()