Searched refs:CoercionCost (Results 1 – 8 of 8) sorted by relevance
/external/skia/src/sksl/ir/ |
D | SkSLType.cpp | 21 CoercionCost Type::coercionCost(const Type& other) const { in coercionCost() 23 return CoercionCost::Free(); in coercionCost() 29 return CoercionCost::Impossible(); in coercionCost() 35 return CoercionCost::Impossible(); in coercionCost() 39 return CoercionCost::Free(); in coercionCost() 41 return CoercionCost::Impossible(); in coercionCost() 43 return CoercionCost::Normal(other.priority() - this->priority()); in coercionCost() 45 return CoercionCost::Narrowing(this->priority() - other.priority()); in coercionCost() 50 return CoercionCost::Normal((int) i + 1); in coercionCost() 53 return CoercionCost::Impossible(); in coercionCost()
|
D | SkSLType.h | 26 struct CoercionCost { struct 27 static CoercionCost Free() { return { 0, 0, false }; } in Free() argument 28 static CoercionCost Normal(int cost) { return { cost, 0, false }; } in Normal() argument 29 static CoercionCost Narrowing(int cost) { return { 0, cost, false }; } in Narrowing() argument 30 static CoercionCost Impossible() { return { 0, 0, true }; } in Impossible() argument 37 CoercionCost operator+(CoercionCost rhs) const { argument 44 bool operator<(CoercionCost rhs) const { 259 CoercionCost coercionCost(const Type& other) const;
|
D | SkSLFloatLiteral.h | 59 CoercionCost coercionCost(const Type& target) const override { in coercionCost() 61 return CoercionCost::Free(); in coercionCost()
|
D | SkSLIntLiteral.h | 69 CoercionCost coercionCost(const Type& target) const override { in coercionCost() 71 return CoercionCost::Free(); in coercionCost()
|
D | SkSLExpression.h | 154 virtual CoercionCost coercionCost(const Type& target) const { in coercionCost()
|
/external/skia/src/sksl/ |
D | SkSLOperators.cpp | 263 CoercionCost rightToLeft = right.coercionCost(left), in determineBinaryType() 372 CoercionCost rightToLeftCost = right.coercionCost(left); in determineBinaryType() 373 CoercionCost leftToRightCost = isAssignment ? CoercionCost::Impossible() in determineBinaryType()
|
D | SkSLIRGenerator.h | 191 CoercionCost callCost(const FunctionDeclaration& function, 194 CoercionCost coercionCost(const Expression& expr, const Type& type);
|
D | SkSLIRGenerator.cpp | 1481 CoercionCost IRGenerator::callCost(const FunctionDeclaration& function, in callCost() 1484 return CoercionCost::Impossible(); in callCost() 1489 return CoercionCost::Impossible(); in callCost() 1491 CoercionCost total = CoercionCost::Free(); in callCost() 1531 CoercionCost bestCost = CoercionCost::Impossible(); in call() 1535 CoercionCost cost = this->callCost(*f, arguments); in call()
|