/external/skia/src/animator/ |
D | SkMemberInfo.cpp | 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() [all …]
|
D | SkAnimatorScript.cpp | 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() [all …]
|
D | SkDisplayTypes.cpp | 123 SkScriptValue* scriptValue) { in executeFunction() argument 124 if (scriptValue == NULL) in executeFunction() 129 scriptValue->fType = SkType_String; in executeFunction() 141 scriptValue->fOperand.fString = new SkString(&value.c_str()[start], end - start); in executeFunction() 143 scriptValue->fOperand.fString = new SkString(value); in executeFunction() 152 bool SkDisplayString::getProperty(int index, SkScriptValue* scriptValue) const { in getProperty() 155 scriptValue->fType = SkType_Int; in getProperty() 156 scriptValue->fOperand.fS32 = (int32_t) value.size(); in getProperty()
|
D | SkScript2.h | 227 SkScriptValue2 scriptValue; in convertToString() local 228 scriptValue.fOperand = *operand; in convertToString() 229 scriptValue.fType = type; in convertToString() 230 convertTo(SkOperand2::kString, &scriptValue); in convertToString() 231 *operand = scriptValue.fOperand; in convertToString() 237 SkOperand2::OpType getUnboxType(SkOperand2 scriptValue); 244 bool handleUnbox(SkScriptValue2* scriptValue);
|
D | SkDisplayApply.cpp | 128 SkScriptValue scriptValue; in applyValues() local 129 scriptValue.fOperand = values[0]; in applyValues() 130 scriptValue.fType = info->getType(); in applyValues() 131 target->setProperty(info->propertyIndex(), scriptValue); in applyValues() 473 SkScriptValue scriptValue; in endSave() local 474 SkDEBUGCODE(bool success = ) target->getProperty(info->propertyIndex(), &scriptValue); in endSave() 476 last[0] = scriptValue.fOperand; in endSave() 477 scriptValue.fOperand = fActive->fSaveRestore[activeIndex][0]; in endSave() 478 target->setProperty(info->propertyIndex(), scriptValue); in endSave() 763 SkScriptValue scriptValue; in save() local [all …]
|
D | SkDrawMatrix.cpp | 214 bool SkDrawMatrix::setProperty(int index, SkScriptValue& scriptValue) { in setProperty() argument 215 SkScalar number = scriptValue.fOperand.fScalar; in setProperty() 219 SkASSERT(scriptValue.fType == SkType_Array); in setProperty() 220 SkASSERT(scriptValue.fOperand.fArray->getType() == SkType_Float); in setProperty() 221 SkASSERT(scriptValue.fOperand.fArray->count() == 2); in setProperty() 223 fMatrix.setTranslateX((*scriptValue.fOperand.fArray)[0].fScalar); in setProperty() 224 fMatrix.setTranslateY((*scriptValue.fOperand.fArray)[1].fScalar); in setProperty()
|
D | SkAnimator.cpp | 320 SkScriptValue scriptValue; in getInt() local 321 bool success = element->getProperty(info->propertyIndex(), &scriptValue); in getInt() 322 if (success && scriptValue.fType == SkType_Int) in getInt() 323 return scriptValue.fOperand.fS32; in getInt() 346 SkScriptValue scriptValue; in getScalar() local 347 bool success = element->getProperty(info->propertyIndex(), &scriptValue); in getScalar() 348 if (success && scriptValue.fType == SkType_Float) in getScalar() 349 return scriptValue.fOperand.fScalar; in getScalar() 574 SkScriptValue scriptValue; in setInt() local 575 scriptValue.fType = SkType_Int; in setInt() [all …]
|
D | SkScript.h | 195 SkScriptValue scriptValue; in convertToString() local 196 scriptValue.fOperand = operand; in convertToString() 197 scriptValue.fType = type; in convertToString() 198 convertTo(SkType_String, &scriptValue); in convertToString() 199 operand = scriptValue.fOperand; in convertToString() 211 bool handleUnbox(SkScriptValue* scriptValue);
|
D | SkScript.cpp | 713 SkScriptValue scriptValue; in innerScript() local 714 SkDEBUGCODE(scriptValue.fOperand.fObject = NULL); in innerScript() 725 fOperandStack.pop(&scriptValue.fOperand); in innerScript() 726 scriptValue.fType = ToDisplayType(topType); in innerScript() 727 handleBox(&scriptValue); in innerScript() 877 SkScriptValue scriptValue; in handleArrayIndexer() local 883 bool success = innerScript(scriptPtr, suppressed == false ? &scriptValue : NULL); in handleArrayIndexer() 888 if (convertTo(SkType_Int, &scriptValue) == false) in handleArrayIndexer() 890 int index = scriptValue.fOperand.fS32; in handleArrayIndexer() 891 SkScriptValue scriptValue; in handleArrayIndexer() local [all …]
|
D | SkScriptTokenizer.cpp | 463 SkOperand2::OpType SkScriptEngine2::getUnboxType(SkOperand2 scriptValue) { in getUnboxType() argument 467 return (*callBack)->getReturnType(0, &scriptValue); in getUnboxType() 606 SkDEBUGCODE(SkScriptValue2 scriptValue;) in innerScript() 607 SkDEBUGCODE(scriptValue.fOperand.fObject = NULL); in innerScript() 774 SkScriptValue2 scriptValue; in handleArrayIndexer() local 780 bool success = innerScript(scriptPtr, &scriptValue); in handleArrayIndexer() 783 success = convertTo(SkOperand2::kS32, &scriptValue); in handleArrayIndexer() 785 int index = scriptValue.fOperand.fS32; in handleArrayIndexer() 786 fValueStack.pop(&scriptValue); in handleArrayIndexer() 787 if (scriptValue.fType == SkOperand2::kObject) { in handleArrayIndexer() [all …]
|
/external/skia/legacy/src/animator/ |
D | SkMemberInfo.cpp | 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() [all …]
|
D | SkAnimatorScript.cpp | 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() [all …]
|
D | SkDisplayTypes.cpp | 127 SkScriptValue* scriptValue) { in executeFunction() argument 128 if (scriptValue == NULL) in executeFunction() 133 scriptValue->fType = SkType_String; in executeFunction() 145 scriptValue->fOperand.fString = new SkString(&value.c_str()[start], end - start); in executeFunction() 147 scriptValue->fOperand.fString = new SkString(value); in executeFunction() 156 bool SkDisplayString::getProperty(int index, SkScriptValue* scriptValue) const { in getProperty() 159 scriptValue->fType = SkType_Int; in getProperty() 160 scriptValue->fOperand.fS32 = (int32_t) value.size(); in getProperty()
|
D | SkScript2.h | 227 SkScriptValue2 scriptValue; in convertToString() local 228 scriptValue.fOperand = *operand; in convertToString() 229 scriptValue.fType = type; in convertToString() 230 convertTo(SkOperand2::kString, &scriptValue); in convertToString() 231 *operand = scriptValue.fOperand; in convertToString() 237 SkOperand2::OpType getUnboxType(SkOperand2 scriptValue); 244 bool handleUnbox(SkScriptValue2* scriptValue);
|
D | SkDisplayApply.cpp | 128 SkScriptValue scriptValue; in applyValues() local 129 scriptValue.fOperand = values[0]; in applyValues() 130 scriptValue.fType = info->getType(); in applyValues() 131 target->setProperty(info->propertyIndex(), scriptValue); in applyValues() 473 SkScriptValue scriptValue; in endSave() local 474 bool success = target->getProperty(info->propertyIndex(), &scriptValue); in endSave() 476 last[0] = scriptValue.fOperand; in endSave() 477 scriptValue.fOperand = fActive->fSaveRestore[activeIndex][0]; in endSave() 478 target->setProperty(info->propertyIndex(), scriptValue); in endSave() 763 SkScriptValue scriptValue; in save() local [all …]
|
D | SkDrawMatrix.cpp | 214 bool SkDrawMatrix::setProperty(int index, SkScriptValue& scriptValue) { in setProperty() argument 215 SkScalar number = scriptValue.fOperand.fScalar; in setProperty() 219 SkASSERT(scriptValue.fType == SkType_Array); in setProperty() 220 SkASSERT(scriptValue.fOperand.fArray->getType() == SkType_Float); in setProperty() 221 SkASSERT(scriptValue.fOperand.fArray->count() == 2); in setProperty() 223 fMatrix.setTranslateX((*scriptValue.fOperand.fArray)[0].fScalar); in setProperty() 224 fMatrix.setTranslateY((*scriptValue.fOperand.fArray)[1].fScalar); in setProperty()
|
D | SkAnimator.cpp | 320 SkScriptValue scriptValue; in getInt() local 321 bool success = element->getProperty(info->propertyIndex(), &scriptValue); in getInt() 322 if (success && scriptValue.fType == SkType_Int) in getInt() 323 return scriptValue.fOperand.fS32; in getInt() 346 SkScriptValue scriptValue; in getScalar() local 347 bool success = element->getProperty(info->propertyIndex(), &scriptValue); in getScalar() 348 if (success && scriptValue.fType == SkType_Float) in getScalar() 349 return scriptValue.fOperand.fScalar; in getScalar() 574 SkScriptValue scriptValue; in setInt() local 575 scriptValue.fType = SkType_Int; in setInt() [all …]
|
D | SkScript.h | 195 SkScriptValue scriptValue; in convertToString() local 196 scriptValue.fOperand = operand; in convertToString() 197 scriptValue.fType = type; in convertToString() 198 convertTo(SkType_String, &scriptValue); in convertToString() 199 operand = scriptValue.fOperand; in convertToString() 211 bool handleUnbox(SkScriptValue* scriptValue);
|
D | SkScript.cpp | 713 SkScriptValue scriptValue; in innerScript() local 714 SkDEBUGCODE(scriptValue.fOperand.fObject = NULL); in innerScript() 725 fOperandStack.pop(&scriptValue.fOperand); in innerScript() 726 scriptValue.fType = ToDisplayType(topType); in innerScript() 727 handleBox(&scriptValue); in innerScript() 877 SkScriptValue scriptValue; in handleArrayIndexer() local 883 bool success = innerScript(scriptPtr, suppressed == false ? &scriptValue : NULL); in handleArrayIndexer() 888 if (convertTo(SkType_Int, &scriptValue) == false) in handleArrayIndexer() 890 int index = scriptValue.fOperand.fS32; in handleArrayIndexer() 891 SkScriptValue scriptValue; in handleArrayIndexer() local [all …]
|
D | SkScriptTokenizer.cpp | 463 SkOperand2::OpType SkScriptEngine2::getUnboxType(SkOperand2 scriptValue) { in getUnboxType() argument 467 return (*callBack)->getReturnType(0, &scriptValue); in getUnboxType() 606 SkDEBUGCODE(SkScriptValue2 scriptValue;) in innerScript() 607 SkDEBUGCODE(scriptValue.fOperand.fObject = NULL); in innerScript() 774 SkScriptValue2 scriptValue; in handleArrayIndexer() local 780 bool success = innerScript(scriptPtr, &scriptValue); in handleArrayIndexer() 783 success = convertTo(SkOperand2::kS32, &scriptValue); in handleArrayIndexer() 785 int index = scriptValue.fOperand.fS32; in handleArrayIndexer() 786 fValueStack.pop(&scriptValue); in handleArrayIndexer() 787 if (scriptValue.fType == SkOperand2::kObject) { in handleArrayIndexer() [all …]
|
D | SkDisplayMath.cpp | 144 SkScriptValue* scriptValue) { in executeFunction() argument 145 if (scriptValue == NULL) in executeFunction() 224 scriptValue->fOperand.fScalar = scalarResult; in executeFunction() 225 scriptValue->fType = SkType_Float; in executeFunction()
|
/external/webkit/Tools/TestWebKitAPI/Tests/WebKit2/ |
D | PreventEmptyUserAgent.cpp | 45 …JSValueRef scriptValue = WKSerializedScriptValueDeserialize(resultSerializedScriptValue, scriptCon… in didRunJavaScript() local 46 TEST_ASSERT(JSValueIsString(scriptContext, scriptValue)); in didRunJavaScript() 50 JSStringRef scriptString = JSValueToStringCopy(scriptContext, scriptValue, 0); in didRunJavaScript()
|
/external/webkit/Tools/TestWebKitAPI/ |
D | JavaScriptTest.cpp | 53 …JSValueRef scriptValue = WKSerializedScriptValueDeserialize(resultSerializedScriptValue, scriptCon… in javaScriptCallback() local 54 TEST_ASSERT(scriptValue); in javaScriptCallback() 56 JSStringRef scriptString = JSValueToStringCopy(scriptContext, scriptValue, 0); in javaScriptCallback()
|
/external/skia/legacy/src/xml/ |
D | SkJSDisplayable.cpp | 240 SkScriptValue scriptValue; in GetProperty() local 241 bool success = displayable->getProperty(info->propertyIndex(), &scriptValue); in GetProperty() 242 SkASSERT(scriptValue.fType == SkType_Scalar); in GetProperty() 243 scalar = scriptValue.fOperand.fScalar; in GetProperty() 343 SkScriptValue scriptValue; in SetProperty() local 344 scriptValue.fType = SkType_Scalar; in SetProperty() 345 scriptValue.fOperand.fScalar = scalar; in SetProperty() 346 displayable->setProperty(-1 - (int) info->fOffset, scriptValue); in SetProperty()
|
/external/skia/src/xml/ |
D | SkJSDisplayable.cpp | 240 SkScriptValue scriptValue; in GetProperty() local 241 bool success = displayable->getProperty(info->propertyIndex(), &scriptValue); in GetProperty() 242 SkASSERT(scriptValue.fType == SkType_Scalar); in GetProperty() 243 scalar = scriptValue.fOperand.fScalar; in GetProperty() 343 SkScriptValue scriptValue; in SetProperty() local 344 scriptValue.fType = SkType_Scalar; in SetProperty() 345 scriptValue.fOperand.fScalar = scalar; in SetProperty() 346 displayable->setProperty(-1 - (int) info->fOffset, scriptValue); in SetProperty()
|