Searched defs:scriptValue (Results 1 - 18 of 18) sorted by relevance

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

Completed in 213 milliseconds