Home
last modified time | relevance | path

Searched refs:fBool (Results 1 – 25 of 27) sorted by relevance

12

/external/skia/src/sksl/
DSkSLOperators.cpp269 *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()
DSkSLBuiltinTypes.cpp116 , fBool(MakeScalarType("bool", "b", Type::NumberKind::kBoolean, /*priority=*/0)) in BuiltinTypes()
117 , fBool2(MakeVectorType("bool2", "b2", *fBool, /*columns=*/2)) in BuiltinTypes()
118 , fBool3(MakeVectorType("bool3", "b3", *fBool, /*columns=*/3)) in BuiltinTypes()
119 , fBool4(MakeVectorType("bool4", "b4", *fBool, /*columns=*/4)) in BuiltinTypes()
216 {fBool.get(), fBool2.get(), fBool3.get(), fBool4.get()}))
DSkSLUtil.cpp42 if (type == *context.fTypes.fBool ) { *outType = kBool_GrSLType; return true; } in type_to_grsltype()
DSkSLBuiltinTypes.h54 const std::unique_ptr<Type> fBool; variable
/external/skqp/src/sksl/
DSkSLInterpreter.cpp123 if (f.fTest && !evaluate(*f.fTest).fBool) { in runStatement()
146 if (evaluate(*i.fTest).fBool) { in runStatement()
205 return this->getLValue(this->evaluate(*t.fTest).fBool ? *t.fIfTrue : *t.fIfFalse); in getLValue()
353 if (result.fBool) { in evaluate()
360 if (!result.fBool) { in evaluate()
417 return Value(!base.fBool); in evaluate()
460 return this->evaluate(this->evaluate(*t.fTest).fBool ? *t.fIfTrue : *t.fIfFalse); in evaluate()
DSkSLInterpreter.h41 : fBool(b) {} in Value()
45 bool fBool; member
/external/skia/src/sksl/lex/
DRegexNode.h42 fPayload.fBool = false; in RegexNode()
72 bool fBool; member
DRegexParser.cpp136 set.fPayload.fBool = true; in set()
139 set.fPayload.fBool = false; in set()
DRegexNode.cpp38 result.push_back(nfa->addState(NFAState(fPayload.fBool, chars, accept))); in createStates()
92 if (fPayload.fBool) { in description()
/external/skqp/src/sksl/lex/
DRegexNode.h42 fPayload.fBool = false; in RegexNode()
72 bool fBool; member
DRegexNode.cpp38 result.push_back(nfa->addState(NFAState(fPayload.fBool, chars, accept))); in createStates()
91 if (fPayload.fBool) { in description()
DRegexParser.cpp136 set.fPayload.fBool = true; in set()
139 set.fPayload.fBool = false; in set()
/external/skia/src/sksl/ir/
DSkSLDoStatement.cpp21 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert()
32 SkASSERT(test->type() == *context.fTypes.fBool); in Make()
DSkSLIfStatement.cpp41 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert()
59 SkASSERT(test->type() == *context.fTypes.fBool); in Make()
DSkSLForStatement.cpp89 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert()
142 SkASSERT(!test || test->type() == *context.fTypes.fBool); in Make()
DSkSLType.cpp175 } else if (*this == *context.fTypes.fBool) { in toCompound()
179 case 1: return *context.fTypes.fBool; in toCompound()
DSkSLBoolLiteral.h34 return std::make_unique<BoolLiteral>(offset, value, context.fTypes.fBool.get()); in Make()
DSkSLTernaryExpression.cpp21 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert()
DSkSLSetting.cpp31 return context.fTypes.fBool.get(); in type()
DSkSLFunctionCall.cpp73 const Type& bvecType = context.fTypes.fBool->toCompound(context, type.columns(), /*rows=*/1); in optimize_comparison_of_type()
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/bindings/
DBindingsVersioningTest.java50 struct.fBool = true; in newStruct()
131 v7.fBool = true; in testOldToNew()
137 expected.fBool = true; in testOldToNew()
207 expected.fBool = true; in testNewToOld()
/external/skia/tests/
DSkSLMemoryLayoutTest.cpp29 REPORTER_ASSERT(r, 1 == layout.size(*context.fTypes.fBool)); in DEF_TEST()
46 REPORTER_ASSERT(r, 1 == layout.alignment(*context.fTypes.fBool)); in DEF_TEST()
69 fields1.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("c"), context.fTypes.fBool.get()); in DEF_TEST()
116 REPORTER_ASSERT(r, 1 == layout.size(*context.fTypes.fBool)); in DEF_TEST()
133 REPORTER_ASSERT(r, 1 == layout.alignment(*context.fTypes.fBool)); in DEF_TEST()
156 fields1.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("c"), context.fTypes.fBool.get()); in DEF_TEST()
/external/skia/src/sksl/dsl/
DDSLType.cpp69 return *context.fTypes.fBool; in skslType()
/external/skia/src/sksl/codegen/
DSkSLGLSLCodeGenerator.cpp106 else if (component == *fContext.fTypes.fBool) { in getTypeName()
888 BoolLiteral boolTrue(/*offset=*/-1, /*value=*/true, fContext.fTypes.fBool.get()); in writeShortCircuitWorkaroundExpression()
893 BoolLiteral boolFalse(/*offset=*/-1, /*value=*/false, fContext.fTypes.fBool.get()); in writeShortCircuitWorkaroundExpression()
1272 fContext.fTypes.fBool.get())); in writeForStatement()
DSkSLSPIRVCodeGenerator.cpp2153 this->writeInstruction(SpvOpLogicalNot, this->getType(*fContext.fTypes.fBool), inverse, in writeVariableReference()
2221 this->writeInstruction(op, this->getType(*fContext.fTypes.fBool), result, id, out); in foldToBool()
2236 SpvId bvecType = this->getType(fContext.fTypes.fBool->toCompound(fContext, in writeMatrixComparison()
2239 SpvId boolType = this->getType(*fContext.fTypes.fBool); in writeMatrixComparison()
2416 tmpType = &fContext.fTypes.fBool->toCompound(fContext, in writeBinaryExpression()
2443 tmpType = &fContext.fTypes.fBool->toCompound(fContext, in writeBinaryExpression()
2539 const Type& boolType = *fContext.fTypes.fBool; in writeArrayComparison()
2565 const Type& boolType = *fContext.fTypes.fBool; in writeStructComparison()
2592 const Type& boolType = *fContext.fTypes.fBool; in mergeComparisons()
2680 BoolLiteral falseLiteral(/*offset=*/-1, /*value=*/false, fContext.fTypes.fBool.get()); in writeLogicalAnd()
[all …]

12