Lines Matching refs:fOperand
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()
128 scriptValue->fOperand.fObject = displayable; in Box()
144 const char* script = scriptValue->fOperand.fString->c_str(); in Eval()
154 if (MapEnums(tokens, token, len, (int*)&value->fOperand.fS32)) in EvalEnum()
171 value->fOperand.fDisplayable = parent; in EvalID()
178 value->fOperand.fString = NULL; in EvalID()
182 value->fOperand.fDisplayable = displayable; in EvalID()
197 if (SkParse::FindNamedColor(token, len, (SkColor*) &value->fOperand.fS32) != NULL) in EvalNamedColor()
213 result |= SkClampMax(valuePtr->fOperand.fS32, 255) << shift; in EvalRGB()
216 value->fOperand.fS32 = result; in EvalRGB()
236 … value->fOperand.fS32 = *(int32_t*) info->memberData(displayable); // OK for SkScalar too in EvalMemberCommon()
238 …value->fOperand.fScalar = SkScalarDiv((SkScalar) value->fOperand.fS32, 1000); // dividing two ints… in EvalMemberCommon()
246 value->fOperand.fString = new SkString(*displayableString); in EvalMemberCommon()
257 SkTypedArray* array = value->fOperand.fArray = new SkTypedArray(original); in EvalMemberCommon()
279 value->fOperand.fDisplayable = named; in EvalMember()
316 *result = value.fOperand.fDisplayable; in EvaluateDisplayable()
325 *result = value.fOperand.fS32; in EvaluateInt()
334 *result = value.fOperand.fScalar; in EvaluateFloat()
343 result->set(*(value.fOperand.fString)); in EvaluateString()
353 result->set(*(value.fOperand.fString)); in EvaluateString()
368 value->fOperand.fScalar = SK_ScalarInfinity; in Infinity()
380 SkScalar scalar = scriptValue->fOperand.fScalar; in IsFinite()
382 value->fOperand.fS32 = type == SkType_Float ? SkScalarIsNaN(scalar) == false && in IsFinite()
395 …value->fOperand.fS32 = scriptValue->fType == SkType_Float ? SkScalarIsNaN(scriptValue->fOperand.fS… in IsNaN()
423 value->fOperand.fScalar = SK_ScalarNaN; in NaN()
435 value->fOperand.fString = new SkString(key);
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()
578 SkASSERT(value.fOperand.fS32 == scriptTests[index].fIntAnswer); in UnitTest()
581 error = SkScalarAbs(value.fOperand.fScalar - scriptTests[index].fScalarAnswer); in UnitTest()
585 … SkASSERT(strcmp(value.fOperand.fString->c_str(), scriptTests[index].fStringAnswer) == 0); in UnitTest()