• Home
  • Raw
  • Download

Lines Matching refs:scriptValue

91 bool SkAnimatorScript::Box(void* user, SkScriptValue* scriptValue) {  in Box()  argument
93 SkDisplayTypes type = scriptValue->fType; in Box()
97 SkDisplayArray* boxedValue = new SkDisplayArray(*scriptValue->fOperand.fArray); in Box()
103 boxedValue->value = !! scriptValue->fOperand.fS32; in Box()
108 boxedValue->value = scriptValue->fOperand.fS32; in Box()
113 boxedValue->value = scriptValue->fOperand.fScalar; in Box()
116 SkDisplayString* boxedValue = new SkDisplayString(*scriptValue->fOperand.fString); in Box()
120 scriptValue->fOperand.fObject = scriptValue->fOperand.fDisplayable; in Box()
121 scriptValue->fType = SkType_Displayable; in Box()
128 scriptValue->fOperand.fObject = displayable; in Box()
129 scriptValue->fType = SkType_Displayable; in Box()
141 SkScriptValue* scriptValue = params.begin(); in Eval() local
143 if (scriptValue->fType == SkType_String) { in Eval()
144 const char* script = scriptValue->fOperand.fString->c_str(); in Eval()
147 *value = *scriptValue; in Eval()
378 SkScriptValue* scriptValue = params.begin(); in IsFinite() local
379 SkDisplayTypes type = scriptValue->fType; in IsFinite()
380 SkScalar scalar = scriptValue->fOperand.fScalar; in IsFinite()
393 SkScriptValue* scriptValue = params.begin(); in IsNaN() local
395 …value->fOperand.fS32 = scriptValue->fType == SkType_Float ? SkScalarIsNaN(scriptValue->fOperand.fS… in IsNaN()
441 bool SkAnimatorScript::Unbox(void* m, SkScriptValue* scriptValue) { in Unbox() argument
443 SkASSERT((unsigned) scriptValue->fType == (unsigned) SkType_Displayable); in Unbox()
444 SkDisplayable* displayable = (SkDisplayable*) scriptValue->fOperand.fObject; in Unbox()
449 scriptValue->fOperand.fArray = &boxedValue->values; in Unbox()
453 scriptValue->fOperand.fS32 = boxedValue->value; in Unbox()
457 scriptValue->fOperand.fS32 = boxedValue->value; in Unbox()
461 scriptValue->fOperand.fScalar = boxedValue->value; in Unbox()
465 scriptValue->fOperand.fString = SkNEW_ARGS(SkString, (boxedValue->value)); in Unbox()
471 scriptValue->fOperand.fString = SkNEW_ARGS(SkString, (id)); in Unbox()
475 scriptValue->fType = type; in Unbox()