/external/skia/include/sksl/ |
D | DSLCore.h | 93 return DSLCase(DSLExpression(), std::move(statements)...); in Default() 104 DSLStatement Do(DSLStatement stmt, DSLExpression test, PositionInfo pos = PositionInfo()); 109 DSLStatement For(DSLStatement initializer, DSLExpression test, DSLExpression next, 115 DSLStatement If(DSLExpression test, DSLStatement ifTrue, DSLStatement ifFalse = DSLStatement(), 121 DSLStatement Return(DSLExpression value = DSLExpression(), PositionInfo pos = PositionInfo()); 126 DSLExpression Select(DSLExpression test, DSLExpression ifTrue, DSLExpression ifFalse, 129 DSLStatement StaticIf(DSLExpression test, DSLStatement ifTrue, 132 DSLPossibleStatement StaticSwitch(DSLExpression value, SkTArray<DSLCase> cases); 138 DSLPossibleStatement StaticSwitch(DSLExpression value, Cases... cases) { in StaticSwitch() 145 DSLPossibleStatement Switch(DSLExpression value, SkTArray<DSLCase> cases); [all …]
|
D | DSLExpression.h | 34 class DSLExpression { 36 DSLExpression(const DSLExpression&) = delete; 38 DSLExpression(DSLExpression&&); 40 DSLExpression(); 45 DSLExpression(float value); 50 DSLExpression(double value) in DSLExpression() function 51 : DSLExpression((float) value) {} in DSLExpression() 56 DSLExpression(int value); 61 DSLExpression(unsigned int value); 66 DSLExpression(bool value); [all …]
|
D | DSLVar.h | 35 DSLVar(DSLType type, const char* name = "var", DSLExpression initialValue = DSLExpression()); 37 DSLVar(DSLType type, DSLExpression initialValue); 40 DSLExpression initialValue = DSLExpression()); 42 DSLVar(DSLModifiers modifiers, DSLType type, DSLExpression initialValue); 54 DSLExpression x() { in x() 55 return DSLExpression(*this).x(); in x() 58 DSLExpression y() { in y() 59 return DSLExpression(*this).y(); in y() 62 DSLExpression z() { in z() 63 return DSLExpression(*this).z(); in z() [all …]
|
D | DSLFunction.h | 59 DSLExpression operator()(Args&&... args) { in operator() 60 SkTArray<DSLWrapper<DSLExpression>> argArray; in operator() 69 DSLExpression call(SkTArray<DSLWrapper<DSLExpression>> args); 72 void collectArgs(SkTArray<DSLWrapper<DSLExpression>>& args) {} in collectArgs() 75 void collectArgs(SkTArray<DSLWrapper<DSLExpression>>& args, DSLVar& var, in collectArgs() 77 args.push_back(DSLWrapper<DSLExpression>(var)); in collectArgs() 82 void collectArgs(SkTArray<DSLWrapper<DSLExpression>>& args, DSLExpression expr, in collectArgs() 84 args.push_back(DSLWrapper<DSLExpression>(std::move(expr))); in collectArgs()
|
D | DSLType.h | 22 class DSLExpression; variable 141 static DSLExpression Construct(DSLType type, Args&&... args) { in Construct() 142 SkTArray<DSLExpression> argArray; in Construct() 148 static DSLExpression Construct(DSLType type, SkTArray<DSLExpression> argArray); 155 static void CollectArgs(SkTArray<DSLExpression>& args) {} in CollectArgs() 158 static void CollectArgs(SkTArray<DSLExpression>& args, DSLVar& var, in CollectArgs() 165 static void CollectArgs(SkTArray<DSLExpression>& args, DSLExpression expr, in CollectArgs() 182 DSLExpression T(Args&&... args) { \
|
D | DSLCase.h | 27 DSLCase(DSLExpression value, Statements... statements) in DSLCase() 39 DSLCase(DSLExpression value, SkTArray<DSLStatement> statements); 41 DSLCase(DSLExpression value, SkSL::StatementArray statements); 50 DSLExpression fValue; 56 friend DSLPossibleStatement Switch(DSLExpression value, Cases... cases);
|
D | DSLStatement.h | 28 class DSLExpression; variable 37 DSLStatement(DSLExpression expr); 64 friend class DSLExpression; variable
|
D | DSL.h | 19 using Expression = DSLExpression;
|
/external/skia/src/sksl/dsl/ |
D | DSLCore.cpp | 103 static DSLPossibleStatement Do(DSLStatement stmt, DSLExpression test) { in Do() 107 static DSLPossibleStatement For(DSLStatement initializer, DSLExpression test, in For() 108 DSLExpression next, DSLStatement stmt, PositionInfo pos) { in For() 114 static DSLPossibleStatement If(DSLExpression test, DSLStatement ifTrue, DSLStatement ifFalse, in If() 120 static DSLPossibleStatement Return(DSLExpression value, PositionInfo pos) { in Return() 128 static DSLExpression Swizzle(DSLExpression base, SkSL::SwizzleComponent::Type a, in Swizzle() 130 return DSLExpression(Swizzle::Convert(DSLWriter::Context(), base.release(), in Swizzle() 135 static DSLExpression Swizzle(DSLExpression base, in Swizzle() 139 return DSLExpression(Swizzle::Convert(DSLWriter::Context(), base.release(), in Swizzle() 144 static DSLExpression Swizzle(DSLExpression base, in Swizzle() [all …]
|
D | DSLExpression.cpp | 30 DSLExpression::DSLExpression() {} in DSLExpression() function in SkSL::dsl::DSLExpression 32 DSLExpression::DSLExpression(DSLExpression&& other) in DSLExpression() function in SkSL::dsl::DSLExpression 35 DSLExpression::DSLExpression(std::unique_ptr<SkSL::Expression> expression) in DSLExpression() function in SkSL::dsl::DSLExpression 43 DSLExpression::DSLExpression(float value) in DSLExpression() function in SkSL::dsl::DSLExpression 56 DSLExpression::DSLExpression(int value) in DSLExpression() function in SkSL::dsl::DSLExpression 61 DSLExpression::DSLExpression(unsigned int value) in DSLExpression() function in SkSL::dsl::DSLExpression 66 DSLExpression::DSLExpression(bool value) in DSLExpression() function in SkSL::dsl::DSLExpression 71 DSLExpression::DSLExpression(DSLVar& var) in DSLExpression() function in SkSL::dsl::DSLExpression 77 DSLExpression::DSLExpression(DSLVar&& var) in DSLExpression() function in SkSL::dsl::DSLExpression 83 DSLExpression::DSLExpression(DSLPossibleExpression expr, PositionInfo pos) { in DSLExpression() function in SkSL::dsl::DSLExpression [all …]
|
D | DSLVar.cpp | 61 DSLVar::DSLVar(DSLType type, const char* name, DSLExpression initialValue) in DSLVar() 64 DSLVar::DSLVar(DSLType type, DSLExpression initialValue) in DSLVar() 67 DSLVar::DSLVar(DSLModifiers modifiers, DSLType type, DSLExpression initialValue) in DSLVar() 70 DSLVar::DSLVar(DSLModifiers modifiers, DSLType type, const char* name, DSLExpression initialValue) in DSLVar() 131 DSLPossibleExpression DSLVar::operator[](DSLExpression&& index) { in operator []() 132 return DSLExpression(*this)[std::move(index)]; in operator []() 135 DSLPossibleExpression DSLVar::operator=(DSLExpression expr) { in operator =() 136 return DSLWriter::ConvertBinary(DSLExpression(*this).release(), SkSL::Token::Kind::TK_EQ, in operator =()
|
D | DSLCase.cpp | 16 DSLCase::DSLCase(DSLExpression value, SkSL::StatementArray statements) in DSLCase() 20 DSLCase::DSLCase(DSLExpression value, SkTArray<DSLStatement> statements) in DSLCase()
|
D | DSLFunction.cpp | 100 DSLExpression DSLFunction::call(SkTArray<DSLWrapper<DSLExpression>> args) { in call() 103 for (DSLWrapper<DSLExpression>& arg : args) { in call()
|
D | DSLStatement.cpp | 30 DSLStatement::DSLStatement(DSLExpression expr) { in DSLStatement() 49 : DSLStatement(DSLExpression(std::move(expr), pos)) {} in DSLStatement()
|
D | DSLType.cpp | 171 DSLExpression DSLType::Construct(DSLType type, SkTArray<DSLExpression> argArray) { in Construct()
|
/external/skia/tests/ |
D | SkSLDSLTest.cpp | 116 static SkSL::String stringize(DSLExpression& expr) { return expr.release()->description(); } in stringize() 542 DSLExpression e = x + 1; in DEF_GPUTEST_FOR_MOCK_CONTEXT() 611 DSLExpression(Float3x3(Float2(1))).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 617 DSLExpression(Half2x2(1, 2, 3, 4, 5)).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 622 DSLExpression(f43 * Float3(1)).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 628 DSLExpression(f43 = f33).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 634 DSLExpression(h22 = f22).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 640 DSLExpression(Inverse(f43)).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 663 DSLExpression((Bool2(true) + a)).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 668 DSLExpression((a += Bool2(true))).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() [all …]
|
D | SkSLDSLErrorLineNumbers.cpp | 58 DSLExpression x = (Float(1) + true); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 67 DSLExpression x = (a = 5.0f); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 76 DSLExpression x = (a[true]); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 85 DSLExpression x = ++a; in DEF_GPUTEST_FOR_MOCK_CONTEXT() 99 DSLStatement x = For(DSLStatement(), 5, DSLExpression(), DSLStatement()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
|
/external/skia/src/sksl/dsl/priv/ |
D | DSLFPs.h | 28 DSLExpression SampleChild(int index, DSLExpression coords = DSLExpression());
|
D | DSLFPs.cpp | 32 DSLExpression SampleChild(int index, DSLExpression sampleExpr) { in SampleChild() 57 return DSLExpression(std::make_unique<SkSL::CodeStringExpression>( in SampleChild()
|
D | DSLWriter.cpp | 156 SkTArray<DSLExpression> rawArgs) { in Construct() 160 for (DSLExpression& arg : rawArgs) { in Construct()
|
D | DSLWriter.h | 172 SkTArray<DSLExpression> rawArgs);
|
/external/skia/gn/ |
D | sksl.gni | 26 "$_include/sksl/DSLExpression.h", 84 "$_src/sksl/dsl/DSLExpression.cpp",
|
/external/skia/ |
D | Android.bp | 827 "src/sksl/dsl/DSLExpression.cpp", 1314 "src/sksl/dsl/DSLExpression.cpp",
|