Home
last modified time | relevance | path

Searched refs:scriptValue (Results 1 – 25 of 43) sorted by relevance

12

/external/skia/src/animator/
DSkMemberInfo.cpp188 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 …]
DSkAnimatorScript.cpp91 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 …]
DSkDisplayTypes.cpp123 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()
DSkScript2.h227 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);
DSkDisplayApply.cpp128 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 …]
DSkDrawMatrix.cpp214 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()
DSkScript.h195 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);
DSkAnimator.cpp322 SkScriptValue scriptValue; in getInt() local
323 bool success = element->getProperty(info->propertyIndex(), &scriptValue); in getInt()
324 if (success && scriptValue.fType == SkType_Int) in getInt()
325 return scriptValue.fOperand.fS32; in getInt()
348 SkScriptValue scriptValue; in getScalar() local
349 bool success = element->getProperty(info->propertyIndex(), &scriptValue); in getScalar()
350 if (success && scriptValue.fType == SkType_Float) in getScalar()
351 return scriptValue.fOperand.fScalar; in getScalar()
576 SkScriptValue scriptValue; in setInt() local
577 scriptValue.fType = SkType_Int; in setInt()
[all …]
DSkScript.cpp713 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 …]
DSkScriptTokenizer.cpp463 SkOperand2::OpType SkScriptEngine2::getUnboxType(SkOperand2 scriptValue) { in getUnboxType() argument
467 return (*callBack)->getReturnType(0, &scriptValue); in getUnboxType()
772 SkScriptValue2 scriptValue; in handleArrayIndexer() local
778 bool success = innerScript(scriptPtr, &scriptValue); in handleArrayIndexer()
781 success = convertTo(SkOperand2::kS32, &scriptValue); in handleArrayIndexer()
783 int index = scriptValue.fOperand.fS32; in handleArrayIndexer()
784 fValueStack.pop(&scriptValue); in handleArrayIndexer()
785 if (scriptValue.fType == SkOperand2::kObject) { in handleArrayIndexer()
786 success = handleUnbox(&scriptValue); in handleArrayIndexer()
788 SkASSERT(scriptValue.fType == SkOperand2::kArray); in handleArrayIndexer()
[all …]
DSkDisplayMath.cpp144 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/chromium_org/third_party/skia/src/animator/
DSkMemberInfo.cpp188 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 …]
DSkAnimatorScript.cpp91 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 …]
DSkDisplayTypes.cpp123 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()
DSkScript2.h227 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);
DSkDisplayApply.cpp128 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 …]
DSkDrawMatrix.cpp214 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()
DSkScript.h195 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);
DSkAnimator.cpp322 SkScriptValue scriptValue; in getInt() local
323 bool success = element->getProperty(info->propertyIndex(), &scriptValue); in getInt()
324 if (success && scriptValue.fType == SkType_Int) in getInt()
325 return scriptValue.fOperand.fS32; in getInt()
348 SkScriptValue scriptValue; in getScalar() local
349 bool success = element->getProperty(info->propertyIndex(), &scriptValue); in getScalar()
350 if (success && scriptValue.fType == SkType_Float) in getScalar()
351 return scriptValue.fOperand.fScalar; in getScalar()
576 SkScriptValue scriptValue; in setInt() local
577 scriptValue.fType = SkType_Int; in setInt()
[all …]
DSkScript.cpp713 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 …]
DSkScriptTokenizer.cpp463 SkOperand2::OpType SkScriptEngine2::getUnboxType(SkOperand2 scriptValue) { in getUnboxType() argument
467 return (*callBack)->getReturnType(0, &scriptValue); in getUnboxType()
772 SkScriptValue2 scriptValue; in handleArrayIndexer() local
778 bool success = innerScript(scriptPtr, &scriptValue); in handleArrayIndexer()
781 success = convertTo(SkOperand2::kS32, &scriptValue); in handleArrayIndexer()
783 int index = scriptValue.fOperand.fS32; in handleArrayIndexer()
784 fValueStack.pop(&scriptValue); in handleArrayIndexer()
785 if (scriptValue.fType == SkOperand2::kObject) { in handleArrayIndexer()
786 success = handleUnbox(&scriptValue); in handleArrayIndexer()
788 SkASSERT(scriptValue.fType == SkOperand2::kArray); in handleArrayIndexer()
[all …]
DSkDisplayMath.cpp144 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/chromium_org/third_party/WebKit/Source/bindings/v8/
DIDBBindingUtilitiesTest.cpp111 ScriptValue scriptValue(object, v8::Isolate::GetCurrent()); in TEST_F() local
113 checkKeyPathStringValue(scriptValue, "foo", "zoo"); in TEST_F()
114 checkKeyPathNullValue(scriptValue, "bar"); in TEST_F()
122 ScriptValue scriptValue(object, v8::Isolate::GetCurrent()); in TEST_F() local
124 checkKeyPathNumberValue(scriptValue, "foo", 456); in TEST_F()
125 checkKeyPathNullValue(scriptValue, "bar"); in TEST_F()
135 ScriptValue scriptValue(object, v8::Isolate::GetCurrent()); in TEST_F() local
137 checkKeyPathStringValue(scriptValue, "foo.bar", "zee"); in TEST_F()
138 checkKeyPathNullValue(scriptValue, "bar"); in TEST_F()
/external/chromium_org/third_party/skia/src/xml/
DSkJSDisplayable.cpp240 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/
DSkJSDisplayable.cpp240 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()

12