/external/skia/src/animator/ |
D | SkScriptRuntime.cpp | 133 memcpy(&operand[registerLoad].fScalar, opCode, sizeof(SkScalar)); in executeTokens() 195 strPtr->appendScalar(operand[op - SkScriptEngine2::kScalarToString].fScalar); in executeTokens() 200 …operand[0].fScalar = SkScriptEngine2::IntToScalar(operand[op - SkScriptEngine2::kIntToScalar].fS32… in executeTokens() 209 &operand[op - SkScriptEngine2::kStringToScalar].fScalar) == nullptr) in executeTokens() 213 operand[0].fS32 = SkScalarFloorToInt(operand[0].fScalar); in executeTokens() 220 operand[0].fScalar += operand[1].fScalar; in executeTokens() 248 if (operand[1].fScalar == 0) in executeTokens() 249 operand[0].fScalar = operand[0].fScalar == 0 ? SK_ScalarNaN : in executeTokens() 250 operand[0].fScalar > 0 ? SK_ScalarMax : -SK_ScalarMax; in executeTokens() 252 operand[0].fScalar = operand[0].fScalar / operand[1].fScalar; in executeTokens() [all …]
|
D | SkScript.cpp | 659 script = SkParse::FindScalar(script, &operand.fScalar); in innerScript() 1160 int index = indexType == kScalar ? SkScalarFloorToInt(indexOperand.fScalar) : in logicalOp() 1308 operand1.fScalar = IntToScalar(operand1.fS32); in processOp() 1312 operand2.fScalar = IntToScalar(operand2.fS32); in processOp() 1319 … const char* result = SkParse::FindScalar(operand1.fString->c_str(), &operand1.fScalar); in processOp() 1327 operand1.fS32 = SkScalarFloorToInt(operand1.fScalar); in processOp() 1334 const char* result = SkParse::FindScalar(operand2.fString->c_str(), &operand2.fScalar); in processOp() 1342 operand2.fS32 = SkScalarFloorToInt(operand2.fScalar); in processOp() 1355 operand2.fScalar += operand1.fScalar; in processOp() 1387 if (operand2.fScalar == 0) in processOp() [all …]
|
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 | SkOperandIterpolator.cpp | 77 values[i].fScalar = SkScalarInterp(prevSrc[i].fScalar, nextSrc[i].fScalar, T); in timeToValues() 99 array[0].fScalar = SkIntToScalar(a); in iset() 100 array[1].fScalar = SkIntToScalar(b); in iset() 101 array[2].fScalar = SkIntToScalar(c); in iset()
|
D | SkDisplayable.cpp | 208 SkDebugf("%g", SkScalarToFloat(op->fScalar)); in dumpAttrs() 309 if (op.fScalar != blankOp.fScalar || op2.fScalar != blankOp.fScalar) { in dumpValues() 310 …kDebugf("%s=\"[%g,%g]\" ", info->fName, SkScalarToFloat(op.fScalar), SkScalarToFloat(op2.fScalar)); in dumpValues() 369 if (op.fScalar != blankOp.fScalar) { //or /65536? in dumpValues() 370 SkDebugf("%s=\"%g\" ", info->fName, SkScalarToFloat(op.fScalar)); in dumpValues()
|
D | SkMemberInfo.cpp | 143 SkASSERT(sizeof(value[0].fScalar) == sizeof(value[0])); // no support for 64 bit pointers, yet in getValue() 155 … SkASSERT(sizeof(values[0].fScalar) == sizeof(values[0])); // no support for 64 bit pointers, yet in setValue() 306 … scriptValue.fOperand.fMSec = SkScalarRoundToInt(scriptValue.fOperand.fScalar * 1000); in setValue() 374 memcpy(&storage->fScalar, &scriptValue.fOperand.fScalar, sizeof(SkScalar)); in writeValue() 377 …memcpy(&storage->fScalar, scriptValue.fOperand.fArray->begin(), scriptValue.fOperand.fArray->count… in writeValue() 439 storage[0].fScalar = SkIntToScalar(SkColorGetA(color)); in writeValue() 440 storage[1].fScalar = SkIntToScalar(SkColorGetR(color)); in writeValue() 441 storage[2].fScalar = SkIntToScalar(SkColorGetG(color)); in writeValue() 442 storage[3].fScalar = SkIntToScalar(SkColorGetB(color)); in writeValue()
|
D | SkDraw3D.cpp | 96 fPatch.rotateDegrees(parameters[0].fOperand.fScalar, in executeFunction() 97 parameters[1].fOperand.fScalar, parameters[2].fOperand.fScalar); in executeFunction()
|
D | SkOperand2.h | 29 SkScalar fScalar; member 49 SkScalar getScalar() { SkASSERT(fType == SkOperand2::kScalar); return fOperand.fScalar; } in getScalar()
|
D | SkOperand.h | 29 SkScalar fScalar; member 42 SkScalar getScalar() { SkASSERT(fType == SkType_Float); return fOperand.fScalar; } in getScalar()
|
D | SkAnimatorScript.cpp | 113 boxedValue->value = scriptValue->fOperand.fScalar; in Box() 238 value->fOperand.fScalar = value->fOperand.fS32 * 0.001f; in EvalMemberCommon() 334 *result = value.fOperand.fScalar; in EvaluateFloat() 368 value->fOperand.fScalar = SK_ScalarInfinity; in Infinity() 380 SkScalar scalar = scriptValue->fOperand.fScalar; in IsFinite() 395 …erand.fS32 = scriptValue->fType == SkType_Float ? SkScalarIsNaN(scriptValue->fOperand.fScalar) : 0; in IsNaN() 423 value->fOperand.fScalar = SK_ScalarNaN; in NaN() 461 scriptValue->fOperand.fScalar = boxedValue->value; in Unbox() 581 error = SkScalarAbs(value.fOperand.fScalar - scriptTests[index].fScalarAnswer); in UnitTest()
|
D | SkDrawMatrix.cpp | 176 value->fOperand.fScalar = result; in getProperty() 215 SkScalar number = scriptValue.fOperand.fScalar; in setProperty() 223 fMatrix.setTranslateX((*scriptValue.fOperand.fArray)[0].fScalar); in setProperty() 224 fMatrix.setTranslateY((*scriptValue.fOperand.fArray)[1].fScalar); 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()
|
D | SkDrawRectangle.cpp | 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() 183 value->fOperand.fScalar = metrics.fAscent; in getProperty() 186 value->fOperand.fScalar = metrics.fDescent; in getProperty()
|
D | SkScriptTokenizer.cpp | 201 addTokenScalar(value.fOperand.fScalar); in addTokenValue() 557 script = SkParse::FindScalar(script, &operand.fOperand.fScalar); in innerScript() 987 … int index = value.fType == SkOperand2::kScalar ? SkScalarFloorToInt(value.fOperand.fScalar) : in processLogicalOp() 1203 operand.fS32 = SkScalarFloorToInt(operand.fScalar); in ConvertTo() 1211 operand.fScalar = IntToScalar(operand.fS32); in ConvertTo() 1214 … success = SkParse::FindScalar(operand.fString->c_str(), &operand.fScalar) != nullptr; in ConvertTo() 1225 strPtr->appendScalar(operand.fScalar); in ConvertTo() 1261 string->appendScalar(value.fOperand.fScalar); in ValueToString() 1492 error = SkScalarAbs(value.fOperand.fScalar - scriptTests[index].fScalarAnswer); in UnitTest() 1494 …script '%s' == value %g != expected answer %g\n", script, value.fOperand.fScalar / (1.0f * SK_Scal… in UnitTest()
|
D | SkAnimatorScript2.cpp | 72 boxedValue->value = operand->fScalar; in convert() 328 operand->fScalar = boxedValue->value; in convert() 415 value->fScalar = value->fS32 * 0.001f; in evalMemberCommon() 609 error = SkScalarAbs(value.fOperand.fScalar - scriptTests[index].fScalarAnswer); in UnitTest()
|
D | SkDisplayNumber.cpp | 63 value->fOperand.fScalar = constant; in getProperty()
|
D | SkAnimator.cpp | 255 return result ? operand.fScalar : SK_ScalarNaN; in getArrayScalar() 342 return operand.fScalar; in getScalar() 349 return scriptValue.fOperand.fScalar; in getScalar() 595 operand.fScalar = scalar; in setScalar() 601 scriptValue.fOperand.fScalar = scalar; in setScalar()
|
D | SkDisplayRandom.cpp | 50 value->fOperand.fScalar = min + SkScalarMul(max - min, relativeT); in getProperty()
|
D | SkAnimateActive.cpp | 312 SkScalar delta = to[cIndex].fScalar - from[cIndex].fScalar; in pickUp() 314 delta = to[cIndex].fScalar - existingValues[cIndex].fScalar; in pickUp()
|
D | SkDrawColor.cpp | 205 value->fOperand.fScalar = result; in getProperty() 225 SkScalar scalar = value.fOperand.fScalar; in setProperty()
|
D | SkDump.cpp | 70 SkDebugf("%g\" />\n", SkScalarToFloat(value.fOperand.fScalar)); in evaluate()
|
D | SkDrawPath.cpp | 143 value->fOperand.fScalar = fLength; in getProperty()
|
D | SkDisplayApply.cpp | 138 animator->packARGB(&values->fScalar, count, &converted); in applyValues()
|
/external/skia/src/core/ |
D | SkPaint.cpp | 1801 SkScalar fScalar; member 1808 tmp.fScalar = value; in write_scalar() 1817 return tmp.fScalar; in read_scalar()
|