• Home
  • Raw
  • Download

Lines Matching refs:scriptValue

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