Home | History | Annotate | Download | only in animator

Lines Matching full:scriptvalue

99 bool SkAnimatorScript::Box(void* user, SkScriptValue* scriptValue) {
101 SkDisplayTypes type = scriptValue->fType;
105 SkDisplayArray* boxedValue = new SkDisplayArray(*scriptValue->fOperand.fArray);
111 boxedValue->value = !! scriptValue->fOperand.fS32;
116 boxedValue->value = scriptValue->fOperand.fS32;
121 boxedValue->value = scriptValue->fOperand.fScalar;
124 SkDisplayString* boxedValue = new SkDisplayString(*scriptValue->fOperand.fString);
128 scriptValue->fOperand.fObject = scriptValue->fOperand.fDisplayable;
129 scriptValue->fType = SkType_Displayable;
136 scriptValue->fOperand.fObject = displayable;
137 scriptValue->fType = SkType_Displayable;
149 SkScriptValue* scriptValue = params.begin();
151 if (scriptValue->fType == SkType_String) {
152 const char* script = scriptValue->fOperand.fString->c_str();
155 *value = *scriptValue;
386 SkScriptValue* scriptValue = params.begin();
387 SkDisplayTypes type = scriptValue->fType;
388 SkScalar scalar = scriptValue->fOperand.fScalar;
401 SkScriptValue* scriptValue = params.begin();
403 value->fOperand.fS32 = scriptValue->fType == SkType_Float ? SkScalarIsNaN(scriptValue->fOperand.fScalar) : 0;
449 bool SkAnimatorScript::Unbox(void* m, SkScriptValue* scriptValue) {
451 SkASSERT((unsigned) scriptValue->fType == (unsigned) SkType_Displayable);
452 SkDisplayable* displayable = (SkDisplayable*) scriptValue->fOperand.fObject;
457 scriptValue->fOperand.fArray = &boxedValue->values;
461 scriptValue->fOperand.fS32 = boxedValue->value;
465 scriptValue->fOperand.fS32 = boxedValue->value;
469 scriptValue->fOperand.fScalar = boxedValue->value;
473 scriptValue->fOperand.fString = SkNEW_ARGS(SkString, (boxedValue->value));
479 scriptValue->fOperand.fString = SkNEW_ARGS(SkString, (id));
483 scriptValue->fType = type;