/external/skia/src/animator/ |
D | SkAnimatorScript.cpp | 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() 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 …]
|
D | SkOperand.h | 34 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 SkADrawable* 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()
|
D | SkMemberInfo.cpp | 129 *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 …]
|
D | SkOperand2.h | 42 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()
|
D | SkScriptTokenizer.cpp | 193 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 …]
|
D | SkScript.cpp | 350 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 = nullptr); in innerScript() 725 fOperandStack.pop(&scriptValue.fOperand); in innerScript() [all …]
|
D | SkDisplayTypes.cpp | 131 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()
|
D | SkDisplayMath.cpp | 139 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()
|
D | SkDrawPath.cpp | 143 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()
|
D | SkDrawMatrix.cpp | 176 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()
|
D | SkAnimateBase.cpp | 115 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()
|
D | SkDraw3D.cpp | 96 fPatch.rotateDegrees(parameters[0].fOperand.fScalar, in executeFunction() 97 parameters[1].fOperand.fScalar, parameters[2].fOperand.fScalar); in executeFunction()
|
D | SkDump.cpp | 70 SkDebugf("%g\" />\n", SkScalarToFloat(value.fOperand.fScalar)); in evaluate() 73 SkDebugf("%d\" />\n", value.fOperand.fS32); in evaluate() 76 SkDebugf("%s\" />\n", value.fOperand.fString->c_str()); in evaluate()
|
D | SkDrawRectangle.cpp | 75 value->fOperand.fS32 = fBounds.isEmpty() == false; in getProperty() 85 value->fOperand.fScalar = result; in getProperty() 96 SkScalar scalar = value.fOperand.fScalar; in setProperty()
|
D | SkDrawPaint.cpp | 162 … scriptValue->fOperand.fScalar = paint.measureText(parameters[0].fOperand.fString->c_str(), in executeFunction() 163 parameters[0].fOperand.fString->size()); in executeFunction() 183 value->fOperand.fScalar = metrics.fAscent; in getProperty() 186 value->fOperand.fScalar = metrics.fDescent; in getProperty()
|
D | SkDisplayApply.cpp | 123 temp.fOperand = values[index]; in applyValues() 129 scriptValue.fOperand = values[0]; in applyValues() 476 last[0] = scriptValue.fOperand; in endSave() 477 scriptValue.fOperand = fActive->fSaveRestore[activeIndex][0]; in endSave() 489 value->fOperand.fS32 = fLastTime / SK_MSec1; in getProperty() 493 value->fOperand.fS32 = steps; in getProperty() 497 value->fOperand.fS32 = fLastTime; in getProperty() 767 fActive->fSaveRestore[activeIndex][0] = scriptValue.fOperand; in save() 771 scriptValue.fOperand = last[0]; in save() 781 SkAnimateBase* animate = (SkAnimateBase*) scriptValue.fOperand.fDisplayable; in setProperty() [all …]
|
D | SkDisplayRandom.cpp | 50 value->fOperand.fScalar = min + SkScalarMul(max - min, relativeT); in getProperty() 63 fRandom.setSeed(value.fOperand.fS32); in setProperty()
|
D | SkDrawBitmap.cpp | 103 fColor = value.fOperand.fS32; in setProperty() 163 value->fOperand.fS32 = fBitmap.height(); in getProperty() 166 value->fOperand.fS32 = fBitmap.width(); in getProperty()
|
D | SkDisplayEvent.cpp | 157 value->fOperand.fString = &fKeyString; in getProperty() 160 value->fOperand.fString->append("-"); in getProperty() 162 value->fOperand.fString->append(scratch, size); in getProperty() 238 SkString* string = value.fOperand.fString; in setProperty()
|
D | SkDrawExtraPathEffect.cpp | 100 value.fOperand.fScalar = 0; in begin() 102 return value.fOperand.fScalar; in begin() 153 value->fOperand.fScalar = *(SkScalar*) clen; in GetContourLength() 162 value->fOperand.fScalar = *(SkScalar*) dist; in GetDistance() 304 value->fOperand.fScalar = (&shape2D->fLoc.fX)[index]; in Get2D() 307 value->fOperand.fS32 = (&shape2D->fU)[index - 6]; in Get2D()
|
D | SkDisplayable.cpp | 171 …dumpValues(info, value.fType, value.fOperand, blankValue.fOperand, value.fOperand, blankValue.fOpe… in dumpAttrs() 407 temp.fOperand = *op; in executeFunction() 513 scriptValue.fOperand.fDisplayable = displayable; in setReference()
|
D | SkAnimatorScript2.cpp | 147 *answer = value.fOperand; in invoke() 204 ref->fOperand.fObject = named; in getMemberReference() 211 ref->fOperand.fObject = (void*) info; in getMemberReference() 241 ref->fOperand.fObject = (void*) info; in getMemberReference() 606 SkASSERT(value.fOperand.fS32 == scriptTests[index].fIntAnswer); in UnitTest() 609 error = SkScalarAbs(value.fOperand.fScalar - scriptTests[index].fScalarAnswer); in UnitTest() 613 SkASSERT(value.fOperand.fString->equals(scriptTests[index].fStringAnswer)); in UnitTest()
|
/external/skia/src/pathops/ |
D | SkOpEdgeBuilder.cpp | 13 fOperand = false; in init() 40 fOperand = false; in finish() 173 fOperand = true; in walk() 188 fCurrentContour->init(fGlobalState, fOperand, in walk() 189 fXorMask[fOperand] == kEvenOdd_PathOpsMask); in walk()
|
D | SkOpEdgeBuilder.h | 53 SkPathOpsMask xorMask() const { return fXorMask[fOperand]; } in xorMask() 71 bool fOperand; variable
|
D | SkOpContour.h | 227 fOperand = operand; in init() 296 return fOperand; in operand() 370 fOperand = isOp; in setOperand() 427 bool fOperand; // true for the second argument to a binary operator variable
|