Home
last modified time | relevance | path

Searched refs:fOperand (Results 1 – 25 of 80) sorted by relevance

1234

/external/chromium_org/third_party/skia/src/animator/
DSkAnimatorScript.cpp97 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()
128 scriptValue->fOperand.fObject = displayable; in Box()
144 const char* script = scriptValue->fOperand.fString->c_str(); in Eval()
154 if (MapEnums(tokens, token, len, (int*)&value->fOperand.fS32)) in EvalEnum()
171 value->fOperand.fDisplayable = parent; in EvalID()
[all …]
DSkOperand.h34 SkOperand fOperand; member
36 SkTypedArray* getArray() { SkASSERT(fType == SkType_Array); return fOperand.fArray; } in getArray()
37 …SkDisplayable* getDisplayable() { SkASSERT(fType == SkType_Displayable); return fOperand.fDisplaya… in getDisplayable()
38 SkDrawable* getDrawable() { SkASSERT(fType == SkType_Drawable); return fOperand.fDrawable; } in getDrawable()
40 SkDisplayType::IsEnum(maker, fType)); return fOperand.fS32; } in getS32()
41 SkMSec getMSec() { SkASSERT(fType == SkType_MSec); return fOperand.fMSec; } in getMSec()
42 SkScalar getScalar() { SkASSERT(fType == SkType_Float); return fOperand.fScalar; } in getScalar()
43 SkString* getString() { SkASSERT(fType == SkType_String); return fOperand.fString; } in getString()
DSkMemberInfo.cpp129 *string = value.fOperand.fString; in getString()
190 scriptValue.fOperand.fS32 = 0; in setValue()
262 maker.findKey(scriptValue.fOperand.fDisplayable, &charPtr); in setValue()
263 scriptValue.fOperand.fString = new SkString(charPtr); 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()
306 … scriptValue.fOperand.fMSec = SkScalarRoundToInt(scriptValue.fOperand.fScalar * 1000); in setValue()
314 scriptValue.fOperand.fString = &string; in setValue()
374 memcpy(&storage->fScalar, &scriptValue.fOperand.fScalar, sizeof(SkScalar)); in writeValue()
[all …]
DSkOperand2.h42 SkOperand2 fOperand; member
46 SkOpArray* getArray() { SkASSERT(fType == SkOperand2::kArray); return fOperand.fArray; } in getArray()
47 void* getObject() { SkASSERT(fType == SkOperand2::kObject); return fOperand.fObject; } in getObject()
48 int32_t getS32() { SkASSERT(fType == SkOperand2::kS32); return fOperand.fS32; } in getS32()
49 SkScalar getScalar() { SkASSERT(fType == SkOperand2::kScalar); return fOperand.fScalar; } in getScalar()
50 SkString* getString() { SkASSERT(fType == SkOperand2::kString); return fOperand.fString; } in getString()
DSkScriptTokenizer.cpp193 addTokenInt(value.fOperand.fS32); in addTokenValue()
201 addTokenScalar(value.fOperand.fScalar); in addTokenValue()
209 addTokenString(*value.fOperand.fString); in addTokenValue()
377 void* object = top.fOperand.fObject; in evaluateDotParam()
404 inner = value->fOperand.fString->c_str(); in evaluateScript()
497 if (value->fOperand.fArray->count() == 0) in innerScript()
498 value->fOperand.fArray->setType(type = tokenValue.fType); in innerScript()
500 type = value->fOperand.fArray->getType(); in innerScript()
504 *value->fOperand.fArray->append() = tokenValue.fOperand; in innerScript()
542 script = SkParse::FindHex(script, (uint32_t*) &operand.fOperand.fS32); in innerScript()
[all …]
DSkScript.cpp350 bool success = handleObjectToString(value->fOperand.fObject); in convertTo()
356 fOperandStack.pop(&value->fOperand); in convertTo()
431 inner = value->fOperand.fString->c_str(); in evaluateScript()
556 fDisplayable->setReference(tokenInfo, tokenValue.fOperand.fDisplayable); in innerScript()
589 if (value->fOperand.fArray->count() == 0) in innerScript()
590 value->fOperand.fArray->setType(type = tokenValue.fType); in innerScript()
592 type = value->fOperand.fArray->getType(); in innerScript()
598 *value->fOperand.fArray->append() = tokenValue.fOperand; in innerScript()
714 SkDEBUGCODE(scriptValue.fOperand.fObject = NULL); in innerScript()
725 fOperandStack.pop(&scriptValue.fOperand); in innerScript()
[all …]
DSkDisplayTypes.cpp131 int start = parameters[0].fOperand.fS32; in executeFunction()
137 end = parameters[1].fOperand.fS32; 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()
156 scriptValue->fOperand.fS32 = (int32_t) value.size(); in getProperty()
207 value->fOperand.fS32 = values.count(); in getProperty()
DSkDisplayMath.cpp139 SkScalar input = parameters[0].fOperand.fScalar; in executeFunction()
155 scalarResult = SkScalarATan2(input, parameters[1].fOperand.fScalar); in executeFunction()
175 scalarResult = SkMaxScalar(scalarResult, array->fOperand.fScalar); in executeFunction()
182 scalarResult = SkMinScalar(scalarResult, array->fOperand.fScalar); in executeFunction()
189 scalarResult = SkScalarMul(parameters[1].fOperand.fScalar, scalarResult); in executeFunction()
213 scriptValue->fOperand.fScalar = scalarResult; in executeFunction()
223 value->fOperand.fScalar = gConstants[index]; in getProperty()
DSkDrawPath.cpp143 value->fOperand.fScalar = fLength; in getProperty()
147 value->fOperand.fS32 = (int) fPath.getFillType(); in getProperty()
170 SkASSERT(value.fOperand.fS32 >= SkPath::kWinding_FillType && in setProperty()
171 value.fOperand.fS32 <= SkPath::kEvenOdd_FillType); in setProperty()
172 fPath.setFillType((SkPath::FillType) value.fOperand.fS32); in setProperty()
DSkDrawMatrix.cpp176 value->fOperand.fScalar = result; in getProperty()
215 SkScalar number = scriptValue.fOperand.fScalar; 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()
DSkAnimateBase.cpp115 value->fOperand.fS32 = SkToBool(boolResult); in getProperty()
124 value->fOperand.fString = (SkString*) &to; in getProperty()
185 bool boolValue = SkToBool(value.fOperand.fS32); in setProperty()
193 to = *value.fOperand.fString; in setProperty()
216 fTarget = scriptValue.fOperand.fDrawable; in setTarget()
/external/skia/src/animator/
DSkAnimatorScript.cpp97 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()
128 scriptValue->fOperand.fObject = displayable; in Box()
144 const char* script = scriptValue->fOperand.fString->c_str(); in Eval()
154 if (MapEnums(tokens, token, len, (int*)&value->fOperand.fS32)) in EvalEnum()
171 value->fOperand.fDisplayable = parent; in EvalID()
[all …]
DSkOperand.h34 SkOperand fOperand; member
36 SkTypedArray* getArray() { SkASSERT(fType == SkType_Array); return fOperand.fArray; } in getArray()
37 …SkDisplayable* getDisplayable() { SkASSERT(fType == SkType_Displayable); return fOperand.fDisplaya… in getDisplayable()
38 SkDrawable* getDrawable() { SkASSERT(fType == SkType_Drawable); return fOperand.fDrawable; } in getDrawable()
40 SkDisplayType::IsEnum(maker, fType)); return fOperand.fS32; } in getS32()
41 SkMSec getMSec() { SkASSERT(fType == SkType_MSec); return fOperand.fMSec; } in getMSec()
42 SkScalar getScalar() { SkASSERT(fType == SkType_Float); return fOperand.fScalar; } in getScalar()
43 SkString* getString() { SkASSERT(fType == SkType_String); return fOperand.fString; } in getString()
DSkMemberInfo.cpp129 *string = value.fOperand.fString; in getString()
190 scriptValue.fOperand.fS32 = 0; in setValue()
262 maker.findKey(scriptValue.fOperand.fDisplayable, &charPtr); in setValue()
263 scriptValue.fOperand.fString = new SkString(charPtr); 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()
306 … scriptValue.fOperand.fMSec = SkScalarRoundToInt(scriptValue.fOperand.fScalar * 1000); in setValue()
314 scriptValue.fOperand.fString = &string; in setValue()
374 memcpy(&storage->fScalar, &scriptValue.fOperand.fScalar, sizeof(SkScalar)); in writeValue()
[all …]
DSkOperand2.h42 SkOperand2 fOperand; member
46 SkOpArray* getArray() { SkASSERT(fType == SkOperand2::kArray); return fOperand.fArray; } in getArray()
47 void* getObject() { SkASSERT(fType == SkOperand2::kObject); return fOperand.fObject; } in getObject()
48 int32_t getS32() { SkASSERT(fType == SkOperand2::kS32); return fOperand.fS32; } in getS32()
49 SkScalar getScalar() { SkASSERT(fType == SkOperand2::kScalar); return fOperand.fScalar; } in getScalar()
50 SkString* getString() { SkASSERT(fType == SkOperand2::kString); return fOperand.fString; } in getString()
DSkScriptTokenizer.cpp193 addTokenInt(value.fOperand.fS32); in addTokenValue()
201 addTokenScalar(value.fOperand.fScalar); in addTokenValue()
209 addTokenString(*value.fOperand.fString); in addTokenValue()
377 void* object = top.fOperand.fObject; in evaluateDotParam()
404 inner = value->fOperand.fString->c_str(); in evaluateScript()
497 if (value->fOperand.fArray->count() == 0) in innerScript()
498 value->fOperand.fArray->setType(type = tokenValue.fType); in innerScript()
500 type = value->fOperand.fArray->getType(); in innerScript()
504 *value->fOperand.fArray->append() = tokenValue.fOperand; in innerScript()
542 script = SkParse::FindHex(script, (uint32_t*) &operand.fOperand.fS32); in innerScript()
[all …]
DSkScript.cpp350 bool success = handleObjectToString(value->fOperand.fObject); in convertTo()
356 fOperandStack.pop(&value->fOperand); in convertTo()
431 inner = value->fOperand.fString->c_str(); in evaluateScript()
556 fDisplayable->setReference(tokenInfo, tokenValue.fOperand.fDisplayable); in innerScript()
589 if (value->fOperand.fArray->count() == 0) in innerScript()
590 value->fOperand.fArray->setType(type = tokenValue.fType); in innerScript()
592 type = value->fOperand.fArray->getType(); in innerScript()
598 *value->fOperand.fArray->append() = tokenValue.fOperand; in innerScript()
714 SkDEBUGCODE(scriptValue.fOperand.fObject = NULL); in innerScript()
725 fOperandStack.pop(&scriptValue.fOperand); in innerScript()
[all …]
DSkDisplayTypes.cpp131 int start = parameters[0].fOperand.fS32; in executeFunction()
137 end = parameters[1].fOperand.fS32; 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()
156 scriptValue->fOperand.fS32 = (int32_t) value.size(); in getProperty()
207 value->fOperand.fS32 = values.count(); in getProperty()
DSkDisplayMath.cpp139 SkScalar input = parameters[0].fOperand.fScalar; in executeFunction()
155 scalarResult = SkScalarATan2(input, parameters[1].fOperand.fScalar); in executeFunction()
175 scalarResult = SkMaxScalar(scalarResult, array->fOperand.fScalar); in executeFunction()
182 scalarResult = SkMinScalar(scalarResult, array->fOperand.fScalar); in executeFunction()
189 scalarResult = SkScalarMul(parameters[1].fOperand.fScalar, scalarResult); in executeFunction()
213 scriptValue->fOperand.fScalar = scalarResult; in executeFunction()
223 value->fOperand.fScalar = gConstants[index]; in getProperty()
DSkDrawPath.cpp143 value->fOperand.fScalar = fLength; in getProperty()
147 value->fOperand.fS32 = (int) fPath.getFillType(); in getProperty()
170 SkASSERT(value.fOperand.fS32 >= SkPath::kWinding_FillType && in setProperty()
171 value.fOperand.fS32 <= SkPath::kEvenOdd_FillType); in setProperty()
172 fPath.setFillType((SkPath::FillType) value.fOperand.fS32); in setProperty()
DSkDrawMatrix.cpp176 value->fOperand.fScalar = result; in getProperty()
215 SkScalar number = scriptValue.fOperand.fScalar; 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()
DSkAnimateBase.cpp115 value->fOperand.fS32 = SkToBool(boolResult); in getProperty()
124 value->fOperand.fString = (SkString*) &to; in getProperty()
185 bool boolValue = SkToBool(value.fOperand.fS32); in setProperty()
193 to = *value.fOperand.fString; in setProperty()
216 fTarget = scriptValue.fOperand.fDrawable; in setTarget()
/external/chromium_org/third_party/skia/src/pathops/
DSkOpEdgeBuilder.cpp13 fOperand = false; in init()
145 fOperand = true; in walk()
159 fCurrentContour->setOperand(fOperand); in walk()
160 fCurrentContour->setXor(fXorMask[fOperand] == kEvenOdd_PathOpsMask); in walk()
DSkOpContour.h58 fSegments.push_back().addCubic(pts, fOperand, fXor); in addCubic()
63 fSegments.push_back().addLine(pts, fOperand, fXor); in addLine()
75 fSegments.push_back().addQuad(pts, fOperand, fXor); in addQuad()
229 return fOperand; in operand()
249 fOperand = isOp; in setOperand()
346 bool fOperand; // true for the second argument to a binary operator variable
/external/skia/src/pathops/
DSkOpEdgeBuilder.cpp13 fOperand = false; in init()
145 fOperand = true; in walk()
159 fCurrentContour->setOperand(fOperand); in walk()
160 fCurrentContour->setXor(fXorMask[fOperand] == kEvenOdd_PathOpsMask); in walk()

1234