/third_party/skia/src/sksl/ |
D | SkSLOperators.cpp | 269 *outResultType = context.fTypes.fBool.get(); in determineBinaryType() 276 *outResultType = context.fTypes.fBool.get(); in determineBinaryType() 285 *outLeftType = context.fTypes.fBool.get(); in determineBinaryType() 286 *outRightType = context.fTypes.fBool.get(); in determineBinaryType() 287 *outResultType = context.fTypes.fBool.get(); in determineBinaryType() 288 return left.canCoerceTo(*context.fTypes.fBool, allowNarrowing) && in determineBinaryType() 289 right.canCoerceTo(*context.fTypes.fBool, allowNarrowing); in determineBinaryType() 396 *outResultType = context.fTypes.fBool.get(); in determineBinaryType()
|
D | SkSLBuiltinTypes.cpp | 51 , fBool(Type::MakeScalarType( in BuiltinTypes() 53 , fBool2(Type::MakeVectorType("bool2", "b2", *fBool, /*columns=*/2)) in BuiltinTypes() 54 , fBool3(Type::MakeVectorType("bool3", "b3", *fBool, /*columns=*/3)) in BuiltinTypes() 55 , fBool4(Type::MakeVectorType("bool4", "b4", *fBool, /*columns=*/4)) in BuiltinTypes() 146 , fGenBType(Type::MakeGenericType("$genBType", {fBool.get(), fBool2.get(), fBool3.get(),
|
D | SkSLUtil.cpp | 40 if (type == *context.fTypes.fBool ) { *outType = kBool_GrSLType; return true; } in type_to_grsltype()
|
D | SkSLBuiltinTypes.h | 54 const std::unique_ptr<Type> fBool; variable
|
/third_party/skia/src/sksl/lex/ |
D | RegexNode.h | 42 fPayload.fBool = false; in RegexNode() 72 bool fBool; member
|
D | RegexNode.cpp | 38 result.push_back(nfa->addState(NFAState(fPayload.fBool, chars, accept))); in createStates() 92 if (fPayload.fBool) { in description()
|
D | RegexParser.cpp | 137 set.fPayload.fBool = true; in set() 140 set.fPayload.fBool = false; in set()
|
/third_party/flutter/skia/src/sksl/lex/ |
D | RegexNode.h | 42 fPayload.fBool = false; in RegexNode() 72 bool fBool; member
|
D | RegexParser.cpp | 136 set.fPayload.fBool = true; in set() 139 set.fPayload.fBool = false; in set()
|
D | RegexNode.cpp | 38 result.push_back(nfa->addState(NFAState(fPayload.fBool, chars, accept))); in createStates() 91 if (fPayload.fBool) { in description()
|
/third_party/skia/src/sksl/ir/ |
D | SkSLDoStatement.cpp | 24 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert() 38 SkASSERT(test->type() == *context.fTypes.fBool); in Make()
|
D | SkSLIfStatement.cpp | 42 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert() 67 SkASSERT(test->type() == *context.fTypes.fBool); in Make()
|
D | SkSLForStatement.cpp | 96 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert() 168 SkASSERT(!test || test->type() == *context.fTypes.fBool); in Make()
|
D | SkSLTernaryExpression.cpp | 23 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert()
|
D | SkSLLiteral.h | 58 return std::make_unique<Literal>(line, value, context.fTypes.fBool.get()); in MakeBool()
|
D | SkSLSetting.cpp | 34 return context.fTypes.fBool.get(); in type()
|
D | SkSLType.cpp | 702 } else if (*this == *context.fTypes.fBool) { in toCompound() 706 case 1: return *context.fTypes.fBool; in toCompound()
|
D | SkSLFunctionCall.cpp | 189 const Type& bvecType = context.fTypes.fBool->toCompound(context, type.columns(), /*rows=*/1); in optimize_comparison()
|
/third_party/skia/tests/ |
D | SkSLMemoryLayoutTest.cpp | 31 REPORTER_ASSERT(r, 1 == layout.size(*context.fTypes.fBool)); in DEF_TEST() 48 REPORTER_ASSERT(r, 1 == layout.alignment(*context.fTypes.fBool)); in DEF_TEST() 71 fields1.emplace_back(SkSL::Modifiers(), skstd::string_view("c"), context.fTypes.fBool.get()); in DEF_TEST() 119 REPORTER_ASSERT(r, 1 == layout.size(*context.fTypes.fBool)); in DEF_TEST() 136 REPORTER_ASSERT(r, 1 == layout.alignment(*context.fTypes.fBool)); in DEF_TEST() 159 fields1.emplace_back(SkSL::Modifiers(), skstd::string_view("c"), context.fTypes.fBool.get()); in DEF_TEST()
|
/third_party/skia/src/sksl/codegen/ |
D | SkSLGLSLCodeGenerator.cpp | 95 else if (component == *fContext.fTypes.fBool) { in getTypeName() 934 Literal boolTrue(/*line=*/-1, /*value=*/1, fContext.fTypes.fBool.get()); in writeShortCircuitWorkaroundExpression() 939 Literal boolFalse(/*line=*/-1, /*value=*/0, fContext.fTypes.fBool.get()); in writeShortCircuitWorkaroundExpression() 1315 fContext.fTypes.fBool.get())); in writeForStatement()
|
D | SkSLSPIRVCodeGenerator.cpp | 2165 fContext.fTypes.fBool.get(), in writeVariableReference() 2243 this->writeInstruction(op, this->getType(*fContext.fTypes.fBool), result, id, out); in foldToBool() 2258 SpvId bvecType = this->getType(fContext.fTypes.fBool->toCompound(fContext, in writeMatrixComparison() 2261 SpvId boolType = this->getType(*fContext.fTypes.fBool); in writeMatrixComparison() 2461 tmpType = &fContext.fTypes.fBool->toCompound(fContext, in writeBinaryExpression() 2488 tmpType = &fContext.fTypes.fBool->toCompound(fContext, in writeBinaryExpression() 2586 const Type& boolType = *fContext.fTypes.fBool; in writeArrayComparison() 2612 const Type& boolType = *fContext.fTypes.fBool; in writeStructComparison() 2639 const Type& boolType = *fContext.fTypes.fBool; in mergeComparisons() 2726 SpvId falseConstant = this->writeLiteral(0.0, *fContext.fTypes.fBool); in writeLogicalAnd() [all …]
|
/third_party/skia/src/sksl/dsl/ |
D | DSLType.cpp | 67 return context.fTypes.fBool.get(); in get_type_from_type_constant()
|