Home
last modified time | relevance | path

Searched refs:allowNarrowing (Results 1 – 2 of 2) sorted by relevance

/third_party/skia/src/sksl/
DSkSLOperators.cpp253 const bool allowNarrowing = context.fConfig->fSettings.fAllowNarrowingConversions; in determineBinaryType() local
259 return right.canCoerceTo(left, allowNarrowing); in determineBinaryType()
266 if (rightToLeft.isPossible(allowNarrowing)) { in determineBinaryType()
273 if (leftToRight.isPossible(allowNarrowing)) { in determineBinaryType()
288 return left.canCoerceTo(*context.fTypes.fBool, allowNarrowing) && in determineBinaryType()
289 right.canCoerceTo(*context.fTypes.fBool, allowNarrowing); in determineBinaryType()
382 if (rightToLeftCost.isPossible(allowNarrowing) && rightToLeftCost < leftToRightCost) { in determineBinaryType()
387 } else if (leftToRightCost.isPossible(allowNarrowing)) { in determineBinaryType()
/third_party/skia/src/sksl/ir/
DSkSLType.h32 bool isPossible(bool allowNarrowing) const { in isPossible()
33 return !fImpossible && (fNarrowingCost == 0 || allowNarrowing); in isPossible()
324 bool canCoerceTo(const Type& other, bool allowNarrowing) const { in canCoerceTo() argument
325 return this->coercionCost(other).isPossible(allowNarrowing); in canCoerceTo()