Home | History | Annotate | Download | only in animator

Lines Matching refs:scriptValue

188     SkScriptValue scriptValue;
189 scriptValue.fType = SkType_Unknown;
190 scriptValue.fOperand.fS32 = 0;
252 success = engine.evaluateScript(&script, &scriptValue);
259 if (scriptValue.fType == SkType_Displayable) {
262 maker.findKey(scriptValue.fOperand.fDisplayable, &charPtr);
263 scriptValue.fOperand.fString = new SkString(charPtr);
264 scriptValue.fType = SkType_String;
265 engine.SkScriptEngine::track(scriptValue.fOperand.fString);
270 displayable->setReference(this, scriptValue.fOperand.fDisplayable);
272 arrayStorage->begin()[0].fDisplayable = scriptValue.fOperand.fDisplayable;
275 if (type != scriptValue.fType) {
276 if (scriptValue.fType == SkType_Array) {
277 engine.forget(scriptValue.getArray());
282 success = engine.convertTo(SkType_String, &scriptValue);
286 success = engine.convertTo(SkType_Float, &scriptValue);
289 success = engine.convertTo(SkType_Int, &scriptValue);
292 success = engine.convertTo(arrayType(), &scriptValue);
293 // !!! incomplete; create array of appropriate type and add scriptValue to it
306 scriptValue.fOperand.fMSec = SkScalarMulRound(scriptValue.fOperand.fScalar, 1000);
307 scriptValue.fType = type;
313 SkScriptValue scriptValue;
314 scriptValue.fOperand.fString = &string;
315 scriptValue.fType = SkType_String;
316 displayable->setProperty(propertyIndex(), scriptValue);
338 untypedStorage, outType, scriptValue)) {
358 SkScriptValue& scriptValue) const
367 displayable->setProperty(propertyIndex(), scriptValue);
370 switch (scriptValue.fType) {
374 memcpy(&storage->fScalar, &scriptValue.fOperand.fScalar, sizeof(SkScalar));
377 memcpy(&storage->fScalar, scriptValue.fOperand.fArray->begin(), scriptValue.fOperand.fArray->count() * sizeof(SkScalar));
380 storage->fString->set(*scriptValue.fOperand.fString);
387 SkASSERT(scriptValue.fType == SkType_Array);
389 displayable->executeFunction(displayable, this, scriptValue.fOperand.fArray, NULL);
391 int count = scriptValue.fOperand.fArray->count();
399 memcpy(&(*arrayStorage)[storageOffset], scriptValue.fOperand.fArray->begin(), count * sizeof(SkOperand));
406 if (scriptValue.fType != SkType_Array) {
407 SkASSERT(type == scriptValue.fType);
410 (*destArray)[storageOffset] = scriptValue.fOperand;
413 type = scriptValue.fOperand.fArray->getType();
416 SkASSERT(type == scriptValue.fOperand.fArray->getType());
417 int count = scriptValue.fOperand.fArray->count();
420 memcpy(destArray->begin() + storageOffset, scriptValue.fOperand.fArray->begin(), sizeof(SkOperand) * count);
424 string->set(*scriptValue.fOperand.fString);
426 SkTypedArray* array = scriptValue.fOperand.fArray;
427 SkASSERT(scriptValue.fType == SkType_Int || scriptValue.fType == SkType_ARGB ||
428 scriptValue.fType == SkType_Array);
429 SkASSERT(scriptValue.fType != SkType_Array || (array != NULL &&
431 int numberOfColors = scriptValue.fType == SkType_Array ? array->count() : 1;
437 SkColor color = scriptValue.fType == SkType_Array ?
438 (SkColor) array->begin()[index].fS32 : (SkColor) scriptValue.fOperand.fS32;
446 if (scriptValue.fType != SkType_Array)
449 int count = scriptValue.fOperand.fArray->count();
452 memcpy(storage, scriptValue.fOperand.fArray->begin(), count * sizeof(SkOperand));
454 } else if (scriptValue.fType == SkType_Array) {
455 SkASSERT(scriptValue.fOperand.fArray->getType() == type);
456 SkASSERT(scriptValue.fOperand.fArray->count() == getCount());
457 memcpy(storage, scriptValue.fOperand.fArray->begin(), getCount() * sizeof(SkOperand));
459 memcpy(storage, &scriptValue.fOperand, sizeof(SkOperand));