Home
last modified time | relevance | path

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

/external/skia/src/animator/
DSkMemberInfo.cpp195 SkScriptValue scriptValue; in setValue() local
196 scriptValue.fType = SkType_Unknown; in setValue()
197 scriptValue.fOperand.fS32 = 0; in setValue()
259 success = engine.evaluateScript(&script, &scriptValue); in setValue()
266 if (scriptValue.fType == SkType_Displayable) { in setValue()
269 maker.findKey(scriptValue.fOperand.fDisplayable, &charPtr); in setValue()
270 scriptValue.fOperand.fString = new SkString(charPtr); in setValue()
271 scriptValue.fType = SkType_String; in setValue()
272 engine.SkScriptEngine::track(scriptValue.fOperand.fString); in setValue()
277 displayable->setReference(this, scriptValue.fOperand.fDisplayable); in setValue()
[all …]
DSkAnimatorScript.cpp99 bool SkAnimatorScript::Box(void* user, SkScriptValue* scriptValue) { in Box() argument
101 SkDisplayTypes type = scriptValue->fType; in Box()
105 SkDisplayArray* boxedValue = new SkDisplayArray(*scriptValue->fOperand.fArray); in Box()
111 boxedValue->value = !! scriptValue->fOperand.fS32; in Box()
116 boxedValue->value = scriptValue->fOperand.fS32; in Box()
121 boxedValue->value = scriptValue->fOperand.fScalar; in Box()
124 SkDisplayString* boxedValue = new SkDisplayString(*scriptValue->fOperand.fString); in Box()
128 scriptValue->fOperand.fObject = scriptValue->fOperand.fDisplayable; in Box()
129 scriptValue->fType = SkType_Displayable; in Box()
136 scriptValue->fOperand.fObject = displayable; in Box()
[all …]
DSkDisplayTypes.cpp135 SkScriptValue* scriptValue) { in executeFunction() argument
136 if (scriptValue == NULL) in executeFunction()
141 scriptValue->fType = SkType_String; in executeFunction()
153 scriptValue->fOperand.fString = new SkString(&value.c_str()[start], end - start); in executeFunction()
155 scriptValue->fOperand.fString = new SkString(value); in executeFunction()
164 bool SkDisplayString::getProperty(int index, SkScriptValue* scriptValue) const { in getProperty()
167 scriptValue->fType = SkType_Int; in getProperty()
168 scriptValue->fOperand.fS32 = (int32_t) value.size(); in getProperty()
DSkDisplayApply.cpp136 SkScriptValue scriptValue; in applyValues() local
137 scriptValue.fOperand = values[0]; in applyValues()
138 scriptValue.fType = info->getType(); in applyValues()
139 target->setProperty(info->propertyIndex(), scriptValue); in applyValues()
480 SkScriptValue scriptValue; in endSave() local
481 bool success = target->getProperty(info->propertyIndex(), &scriptValue); in endSave()
483 last[0] = scriptValue.fOperand; in endSave()
484 scriptValue.fOperand = fActive->fSaveRestore[activeIndex][0]; in endSave()
485 target->setProperty(info->propertyIndex(), scriptValue); in endSave()
770 SkScriptValue scriptValue; in save() local
[all …]
DSkScript2.h220 SkScriptValue2 scriptValue; in convertToString() local
221 scriptValue.fOperand = *operand; in convertToString()
222 scriptValue.fType = type; in convertToString()
223 convertTo(SkOperand2::kString, &scriptValue); in convertToString()
224 *operand = scriptValue.fOperand; in convertToString()
230 SkOperand2::OpType getUnboxType(SkOperand2 scriptValue);
237 bool handleUnbox(SkScriptValue2* scriptValue);
DSkAnimator.cpp328 SkScriptValue scriptValue; in getInt() local
329 bool success = element->getProperty(info->propertyIndex(), &scriptValue); in getInt()
330 if (success && scriptValue.fType == SkType_Int) in getInt()
331 return scriptValue.fOperand.fS32; in getInt()
354 SkScriptValue scriptValue; in getScalar() local
355 bool success = element->getProperty(info->propertyIndex(), &scriptValue); in getScalar()
356 if (success && scriptValue.fType == SkType_Float) in getScalar()
357 return scriptValue.fOperand.fScalar; in getScalar()
582 SkScriptValue scriptValue; in setInt() local
583 scriptValue.fType = SkType_Int; in setInt()
[all …]
DSkDrawMatrix.cpp227 bool SkDrawMatrix::setProperty(int index, SkScriptValue& scriptValue) { in setProperty() argument
228 SkScalar number = scriptValue.fOperand.fScalar; in setProperty()
232 SkASSERT(scriptValue.fType == SkType_Array); in setProperty()
233 SkASSERT(scriptValue.fOperand.fArray->getType() == SkType_Float); in setProperty()
234 SkASSERT(scriptValue.fOperand.fArray->count() == 2); in setProperty()
236 fMatrix.setTranslateX((*scriptValue.fOperand.fArray)[0].fScalar); in setProperty()
237 fMatrix.setTranslateY((*scriptValue.fOperand.fArray)[1].fScalar); in setProperty()
DSkScript.h203 SkScriptValue scriptValue; in convertToString() local
204 scriptValue.fOperand = operand; in convertToString()
205 scriptValue.fType = type; in convertToString()
206 convertTo(SkType_String, &scriptValue); in convertToString()
207 operand = scriptValue.fOperand; in convertToString()
219 bool handleUnbox(SkScriptValue* scriptValue);
DSkScript.cpp720 SkScriptValue scriptValue; in innerScript() local
721 SkDEBUGCODE(scriptValue.fOperand.fObject = NULL); in innerScript()
732 fOperandStack.pop(&scriptValue.fOperand); in innerScript()
733 scriptValue.fType = ToDisplayType(topType); in innerScript()
734 handleBox(&scriptValue); in innerScript()
884 SkScriptValue scriptValue; in handleArrayIndexer() local
890 bool success = innerScript(scriptPtr, suppressed == false ? &scriptValue : NULL); in handleArrayIndexer()
895 if (convertTo(SkType_Int, &scriptValue) == false) in handleArrayIndexer()
897 int index = scriptValue.fOperand.fS32; in handleArrayIndexer()
898 SkScriptValue scriptValue; in handleArrayIndexer() local
[all …]
DSkScriptTokenizer.cpp455 SkOperand2::OpType SkScriptEngine2::getUnboxType(SkOperand2 scriptValue) { in getUnboxType() argument
459 return (*callBack)->getReturnType(0, &scriptValue); in getUnboxType()
597 SkScriptValue2 scriptValue; in innerScript() local
598 SkDEBUGCODE(scriptValue.fOperand.fObject = NULL); in innerScript()
764 SkScriptValue2 scriptValue; in handleArrayIndexer() local
770 bool success = innerScript(scriptPtr, &scriptValue); in handleArrayIndexer()
773 success = convertTo(SkOperand2::kS32, &scriptValue); in handleArrayIndexer()
775 int index = scriptValue.fOperand.fS32; in handleArrayIndexer()
776 fValueStack.pop(&scriptValue); in handleArrayIndexer()
777 if (scriptValue.fType == SkOperand2::kObject) { in handleArrayIndexer()
[all …]
DSkDisplayMath.cpp152 SkScriptValue* scriptValue) { in executeFunction() argument
153 if (scriptValue == NULL) in executeFunction()
232 scriptValue->fOperand.fScalar = scalarResult; in executeFunction()
233 scriptValue->fType = SkType_Float; in executeFunction()
DSkAnimateBase.cpp223 SkScriptValue scriptValue; in setTarget() local
224 bool success = engine.evaluateScript(&script, &scriptValue); in setTarget()
225 if (success && scriptValue.fType == SkType_Displayable) in setTarget()
226 fTarget = scriptValue.fOperand.fDrawable; in setTarget()
DSkDrawTextBox.cpp73 bool SkDrawTextBox::setProperty(int index, SkScriptValue& scriptValue) in setProperty() argument
75 return this->INHERITED::setProperty(index, scriptValue); in setProperty()
DSkDisplayXMLParser.cpp160 SkScriptValue scriptValue; in onAddAttributeLen() local
161 scriptValue.fOperand.fDisplayable = ref; in onAddAttributeLen()
162 scriptValue.fType = ref->getType(); in onAddAttributeLen()
163 displayable->setProperty(info->propertyIndex(), scriptValue); in onAddAttributeLen()
DSkDrawPaint.cpp160 SkScriptValue* scriptValue) { in executeFunction() argument
161 if (scriptValue == NULL) in executeFunction()
170 scriptValue->fType = SkType_Float; in executeFunction()
172scriptValue->fOperand.fScalar = paint.measureText(parameters[0].fOperand.fString->c_str(), in executeFunction()
DSkDisplayable.cpp536 SkScriptValue scriptValue; in setReference() local
537 scriptValue.fOperand.fDisplayable = displayable; in setReference()
538 scriptValue.fType = displayable->getType(); in setReference()
539 setProperty(info->propertyIndex(), scriptValue); in setReference()
DSkAnimatorScript.h69 static bool Unbox(void* , SkScriptValue* scriptValue);
DSkMemberInfo.h103 SkScriptValue& scriptValue) const;
/external/skia/src/xml/
DSkJSDisplayable.cpp248 SkScriptValue scriptValue; in GetProperty() local
249 bool success = displayable->getProperty(info->propertyIndex(), &scriptValue); in GetProperty()
250 SkASSERT(scriptValue.fType == SkType_Scalar); in GetProperty()
251 scalar = scriptValue.fOperand.fScalar; in GetProperty()
351 SkScriptValue scriptValue; in SetProperty() local
352 scriptValue.fType = SkType_Scalar; in SetProperty()
353 scriptValue.fOperand.fScalar = scalar; in SetProperty()
354 displayable->setProperty(-1 - (int) info->fOffset, scriptValue); in SetProperty()
/external/webkit/WebCore/inspector/
DInspectorFrontend.cpp111 … ScriptValue scriptValue = ScriptValue::deserialize(this->scriptState(), serializedValue.get()); in addConsoleMessage() local
112 if (scriptValue.hasNoValue()) { in addConsoleMessage()
116 function.appendArgument(scriptValue); in addConsoleMessage()