/external/skqp/src/sksl/ir/ |
D | SkSLVariableReference.cpp | 54 std::unique_ptr<Expression> VariableReference::copy_constant(const IRGenerator& irGenerator, in copy_constant() argument 59 return std::unique_ptr<Expression>(new IntLiteral(irGenerator.fContext, in copy_constant() 64 irGenerator.fContext, in copy_constant() 68 return std::unique_ptr<Expression>(new BoolLiteral(irGenerator.fContext, in copy_constant() 75 args.push_back(copy_constant(irGenerator, arg.get())); in copy_constant() 83 copy_constant(irGenerator, in copy_constant() 91 std::unique_ptr<Expression> VariableReference::constantPropagate(const IRGenerator& irGenerator, in constantPropagate() argument 96 if (irGenerator.fKind == Program::kPipelineStage_Kind && in constantPropagate() 99 return irGenerator.getArg(fOffset, fVariable.fName); in constantPropagate() 103 return copy_constant(irGenerator, fVariable.fInitialValue); in constantPropagate() [all …]
|
D | SkSLSetting.cpp | 14 std::unique_ptr<Expression> Setting::constantPropagate(const IRGenerator& irGenerator, in constantPropagate() argument 16 if (irGenerator.fSettings->fReplaceSettings) { in constantPropagate() 17 return VariableReference::copy_constant(irGenerator, fValue.get()); in constantPropagate()
|
D | SkSLSwizzle.h | 104 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate() 109 if (fType == *irGenerator.fContext.fInt_Type) { in constantPropagate() 112 return std::unique_ptr<Expression>(new IntLiteral(irGenerator.fContext, in constantPropagate() 115 } else if (fType == *irGenerator.fContext.fFloat_Type) { in constantPropagate() 118 return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, in constantPropagate()
|
D | SkSLConstructor.h | 32 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate() 35 if (fType == *irGenerator.fContext.fFloat_Type || in constantPropagate() 36 fType == *irGenerator.fContext.fHalf_Type) { in constantPropagate() 39 return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, in constantPropagate() 42 } else if (fType == *irGenerator.fContext.fUInt_Type || in constantPropagate() 43 fType == *irGenerator.fContext.fUShort_Type) { in constantPropagate()
|
D | SkSLVariableReference.h | 60 static std::unique_ptr<Expression> copy_constant(const IRGenerator& irGenerator, 63 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator,
|
D | SkSLBinaryExpression.h | 29 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate() 31 return irGenerator.constantFold(*fLeft, in constantPropagate()
|
D | SkSLPrefixExpression.h | 36 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate() 40 irGenerator.fContext, in constantPropagate()
|
D | SkSLSetting.h | 28 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator,
|
D | SkSLExpression.h | 100 virtual std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate()
|
/external/skia/src/sksl/ir/ |
D | SkSLVariableReference.cpp | 54 std::unique_ptr<Expression> VariableReference::copy_constant(const IRGenerator& irGenerator, in copy_constant() argument 59 return std::unique_ptr<Expression>(new IntLiteral(irGenerator.fContext, in copy_constant() 64 irGenerator.fContext, in copy_constant() 68 return std::unique_ptr<Expression>(new BoolLiteral(irGenerator.fContext, in copy_constant() 75 args.push_back(copy_constant(irGenerator, arg.get())); in copy_constant() 83 copy_constant(irGenerator, in copy_constant() 91 std::unique_ptr<Expression> VariableReference::constantPropagate(const IRGenerator& irGenerator, in constantPropagate() argument 96 if (irGenerator.fKind == Program::kPipelineStage_Kind && in constantPropagate() 100 return irGenerator.getArg(fOffset, fVariable.fName); in constantPropagate() 104 return copy_constant(irGenerator, fVariable.fInitialValue); in constantPropagate() [all …]
|
D | SkSLSetting.cpp | 14 std::unique_ptr<Expression> Setting::constantPropagate(const IRGenerator& irGenerator, in constantPropagate() argument 16 if (irGenerator.fSettings->fReplaceSettings) { in constantPropagate() 17 return VariableReference::copy_constant(irGenerator, fValue.get()); in constantPropagate()
|
D | SkSLVariableReference.h | 60 static std::unique_ptr<Expression> copy_constant(const IRGenerator& irGenerator, 63 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator,
|
D | SkSLSwizzle.h | 110 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate() 118 return std::unique_ptr<Expression>(new IntLiteral(irGenerator.fContext, in constantPropagate() 124 return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, in constantPropagate()
|
D | SkSLPrefixExpression.h | 36 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate() 40 irGenerator.fContext, in constantPropagate()
|
D | SkSLBinaryExpression.h | 29 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate() 31 return irGenerator.constantFold(*fLeft, in constantPropagate()
|
D | SkSLConstructor.h | 32 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate() 38 return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, in constantPropagate()
|
D | SkSLSetting.h | 28 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator,
|
D | SkSLExpression.h | 101 virtual std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate()
|