/external/skia/src/gpu/ganesh/ |
D | GrFragmentProcessor.h | 38 class GrFragmentProcessor; variable 39 using GrFPResult = std::tuple<bool /*success*/, std::unique_ptr<GrFragmentProcessor>>; 45 class GrFragmentProcessor : public GrProcessor { 56 static std::unique_ptr<GrFragmentProcessor> MakeColor(SkPMColor4f color); 63 static std::unique_ptr<GrFragmentProcessor> MulInputByChildAlpha( 64 std::unique_ptr<GrFragmentProcessor> child); 70 static std::unique_ptr<GrFragmentProcessor> ApplyPaintAlpha( 71 std::unique_ptr<GrFragmentProcessor> child); 78 static std::unique_ptr<GrFragmentProcessor> ModulateRGBA( 79 std::unique_ptr<GrFragmentProcessor> child, const SkPMColor4f& color); [all …]
|
D | GrFragmentProcessor.cpp | 23 bool GrFragmentProcessor::isEqual(const GrFragmentProcessor& that) const { in isEqual() 49 void GrFragmentProcessor::visitProxies(const GrVisitProxyFunc& func) const { in visitProxies() 55 void GrFragmentProcessor::visitTextureEffects( in visitTextureEffects() 67 void GrFragmentProcessor::visitWithImpls( in visitWithImpls() 68 const std::function<void(const GrFragmentProcessor&, ProgramImpl&)>& f, in visitWithImpls() argument 79 GrTextureEffect* GrFragmentProcessor::asTextureEffect() { in asTextureEffect() 86 const GrTextureEffect* GrFragmentProcessor::asTextureEffect() const { in asTextureEffect() 94 static void recursive_dump_tree_info(const GrFragmentProcessor& fp, in recursive_dump_tree_info() 99 if (const GrFragmentProcessor* childFP = fp.childProcessor(index)) { in recursive_dump_tree_info() 109 SkString GrFragmentProcessor::dumpTreeInfo() const { in dumpTreeInfo() [all …]
|
D | GrColorSpaceXform.h | 57 class GrColorSpaceXformEffect : public GrFragmentProcessor { 63 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> child, 66 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> child, 75 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> child, 79 std::unique_ptr<GrFragmentProcessor> clone() const override; 84 GrColorSpaceXformEffect(std::unique_ptr<GrFragmentProcessor> child, 89 static OptimizationFlags OptFlags(const GrFragmentProcessor* child); 94 bool onIsEqual(const GrFragmentProcessor&) const override; 98 using INHERITED = GrFragmentProcessor;
|
D | GrColorSpaceXform.cpp | 90 GrColorSpaceXformEffect::GrColorSpaceXformEffect(std::unique_ptr<GrFragmentProcessor> child, in GrColorSpaceXformEffect() 101 std::unique_ptr<GrFragmentProcessor> GrColorSpaceXformEffect::clone() const { in clone() 102 return std::unique_ptr<GrFragmentProcessor>(new GrColorSpaceXformEffect(*this)); in clone() 105 bool GrColorSpaceXformEffect::onIsEqual(const GrFragmentProcessor& s) const { in onIsEqual() 114 std::unique_ptr<GrFragmentProcessor::ProgramImpl> 135 const GrFragmentProcessor& fp) override { in onMakeProgramImpl() 146 GrFragmentProcessor::OptimizationFlags GrColorSpaceXformEffect::OptFlags( in OptFlags() 147 const GrFragmentProcessor* child) { in OptFlags() 159 std::unique_ptr<GrFragmentProcessor> GrColorSpaceXformEffect::Make( in Make() 160 std::unique_ptr<GrFragmentProcessor> child, in Make() [all …]
|
D | GrProcessorUnitTest.h | 37 std::unique_ptr<GrFragmentProcessor> MakeChildFP(GrProcessorTestData*); 38 std::unique_ptr<GrFragmentProcessor> MakeOptionalChildFP(GrProcessorTestData*); 56 std::unique_ptr<GrFragmentProcessor> inputFP); 64 std::unique_ptr<GrFragmentProcessor> inputFP(); 77 std::unique_ptr<GrFragmentProcessor> fInputFP; 108 using GrFragmentProcessorTestFactory = GrProcessorTestFactory<std::unique_ptr<GrFragmentProcessor>>; 138 static std::unique_ptr<GrFragmentProcessor> TestCreate(GrProcessorTestData*); 164 static std::unique_ptr<GrFragmentProcessor> TestCreate(GrProcessorTestData*);
|
D | GrPaint.h | 65 void setColorFragmentProcessor(std::unique_ptr<GrFragmentProcessor> fp) { in setColorFragmentProcessor() 75 void setCoverageFragmentProcessor(std::unique_ptr<GrFragmentProcessor> fp) { in setCoverageFragmentProcessor() 91 GrFragmentProcessor* getColorFragmentProcessor() const { in getColorFragmentProcessor() 94 GrFragmentProcessor* getCoverageFragmentProcessor() const { in getCoverageFragmentProcessor() 130 std::unique_ptr<GrFragmentProcessor> fColorFragmentProcessor; 131 std::unique_ptr<GrFragmentProcessor> fCoverageFragmentProcessor;
|
/external/skia/src/gpu/ganesh/effects/ |
D | GrBlendFragmentProcessor.cpp | 31 class BlendFragmentProcessor : public GrFragmentProcessor { 33 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> src, in Make() 34 std::unique_ptr<GrFragmentProcessor> dst, in Make() 37 return std::unique_ptr<GrFragmentProcessor>( in Make() 43 std::unique_ptr<GrFragmentProcessor> clone() const override; 46 BlendFragmentProcessor(std::unique_ptr<GrFragmentProcessor> src, in BlendFragmentProcessor() 47 std::unique_ptr<GrFragmentProcessor> dst, in BlendFragmentProcessor() 69 static OptimizationFlags OptFlags(const GrFragmentProcessor* src, in OptFlags() 70 const GrFragmentProcessor* dst, SkBlendMode mode) { in OptFlags() 166 bool onIsEqual(const GrFragmentProcessor& other) const override { in onIsEqual() [all …]
|
D | GrBicubicEffect.h | 19 class GrBicubicEffect : public GrFragmentProcessor { 40 std::unique_ptr<GrFragmentProcessor> clone() const override { in clone() 41 return std::unique_ptr<GrFragmentProcessor>(new GrBicubicEffect(*this)); in clone() 47 static std::unique_ptr<GrFragmentProcessor> Make(GrSurfaceProxyView view, 56 static std::unique_ptr<GrFragmentProcessor> Make(GrSurfaceProxyView view, 69 static std::unique_ptr<GrFragmentProcessor> MakeSubset(GrSurfaceProxyView view, 83 static std::unique_ptr<GrFragmentProcessor> MakeSubset(GrSurfaceProxyView view, 98 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor>, 112 GrBicubicEffect(std::unique_ptr<GrFragmentProcessor>, 123 bool onIsEqual(const GrFragmentProcessor&) const override; [all …]
|
D | GrBlendFragmentProcessor.h | 16 class GrFragmentProcessor; variable 27 std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> src, 28 std::unique_ptr<GrFragmentProcessor> dst, 36 std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> src, in Make() 37 std::unique_ptr<GrFragmentProcessor> dst) { in Make()
|
D | GrConvexPolyEffect.h | 25 class GrConvexPolyEffect : public GrFragmentProcessor { 40 static GrFPResult Make(std::unique_ptr<GrFragmentProcessor> inputFP, in Make() 48 return GrFPSuccess(std::unique_ptr<GrFragmentProcessor>( in Make() 56 static GrFPResult Make(std::unique_ptr<GrFragmentProcessor>, GrClipEdgeType, const SkPath&); 61 std::unique_ptr<GrFragmentProcessor> clone() const override; 64 GrConvexPolyEffect(std::unique_ptr<GrFragmentProcessor> inputFP, 73 bool onIsEqual(const GrFragmentProcessor& other) const override; 81 using INHERITED = GrFragmentProcessor;
|
D | GrTextureEffect.h | 20 class GrTextureEffect : public GrFragmentProcessor { 25 static std::unique_ptr<GrFragmentProcessor> Make( 36 static std::unique_ptr<GrFragmentProcessor> Make(GrSurfaceProxyView, SkAlphaType, 53 static std::unique_ptr<GrFragmentProcessor> MakeSubset(GrSurfaceProxyView, 68 static std::unique_ptr<GrFragmentProcessor> MakeSubset(GrSurfaceProxyView, 87 static std::unique_ptr<GrFragmentProcessor> MakeCustomLinearFilterInset( 99 std::unique_ptr<GrFragmentProcessor> clone() const override; 124 void onSetData(const GrGLSLProgramDataManager&, const GrFragmentProcessor&) override; 176 bool onIsEqual(const GrFragmentProcessor&) const override; 187 using INHERITED = GrFragmentProcessor;
|
D | GrBicubicEffect.cpp | 25 void onSetData(const GrGLSLProgramDataManager&, const GrFragmentProcessor&) override; 105 const GrFragmentProcessor& fp) { in onSetData() 114 std::unique_ptr<GrFragmentProcessor> GrBicubicEffect::Make(GrSurfaceProxyView view, in Make() 121 return GrMatrixEffect::Make(matrix, std::unique_ptr<GrFragmentProcessor>( in Make() 125 std::unique_ptr<GrFragmentProcessor> GrBicubicEffect::Make(GrSurfaceProxyView view, in Make() 134 std::unique_ptr<GrFragmentProcessor> fp; in Make() 137 return GrMatrixEffect::Make(matrix, std::unique_ptr<GrFragmentProcessor>( in Make() 141 std::unique_ptr<GrFragmentProcessor> GrBicubicEffect::MakeSubset( in MakeSubset() 152 std::unique_ptr<GrFragmentProcessor> fp; in MakeSubset() 156 return GrMatrixEffect::Make(matrix, std::unique_ptr<GrFragmentProcessor>( in MakeSubset() [all …]
|
D | GrRRectEffect.cpp | 28 class CircularRRectEffect : public GrFragmentProcessor { 49 static GrFPResult Make(std::unique_ptr<GrFragmentProcessor>, GrClipEdgeType, 56 std::unique_ptr<GrFragmentProcessor> clone() const override; 61 CircularRRectEffect(std::unique_ptr<GrFragmentProcessor> inputFP, 69 bool onIsEqual(const GrFragmentProcessor& other) const override; 77 using INHERITED = GrFragmentProcessor; 81 GrFPResult CircularRRectEffect::Make(std::unique_ptr<GrFragmentProcessor> inputFP, in Make() 87 return GrFPSuccess(std::unique_ptr<GrFragmentProcessor>( in Make() 91 CircularRRectEffect::CircularRRectEffect(std::unique_ptr<GrFragmentProcessor> inputFP, in CircularRRectEffect() 110 std::unique_ptr<GrFragmentProcessor> CircularRRectEffect::clone() const { in clone() [all …]
|
D | GrMatrixEffect.h | 16 class GrMatrixEffect : public GrFragmentProcessor { 18 static std::unique_ptr<GrFragmentProcessor> Make(const SkMatrix& matrix, 19 std::unique_ptr<GrFragmentProcessor> child); 21 std::unique_ptr<GrFragmentProcessor> clone() const override; 27 GrMatrixEffect(SkMatrix matrix, std::unique_ptr<GrFragmentProcessor> child) in GrMatrixEffect() 37 bool onIsEqual(const GrFragmentProcessor&) const override; 45 using INHERITED = GrFragmentProcessor;
|
D | GrMatrixEffect.cpp | 16 std::unique_ptr<GrFragmentProcessor> GrMatrixEffect::Make( in Make() 17 const SkMatrix& matrix, std::unique_ptr<GrFragmentProcessor> child) { in Make() 27 return std::unique_ptr<GrFragmentProcessor>(new GrMatrixEffect(matrix, std::move(child))); in Make() 30 std::unique_ptr<GrFragmentProcessor::ProgramImpl> GrMatrixEffect::onMakeProgramImpl() const { in onMakeProgramImpl() 44 const GrFragmentProcessor& proc) override { in onMakeProgramImpl() 63 bool GrMatrixEffect::onIsEqual(const GrFragmentProcessor& other) const { in onIsEqual() 73 std::unique_ptr<GrFragmentProcessor> GrMatrixEffect::clone() const { in clone() 74 return std::unique_ptr<GrFragmentProcessor>(new GrMatrixEffect(*this)); in clone()
|
D | GrGaussianConvolutionFragmentProcessor.h | 23 class GrGaussianConvolutionFragmentProcessor : public GrFragmentProcessor { 36 static std::unique_ptr<GrFragmentProcessor> Make(GrSurfaceProxyView, 48 std::unique_ptr<GrFragmentProcessor> clone() const override { in clone() 49 return std::unique_ptr<GrFragmentProcessor>( in clone() 62 GrGaussianConvolutionFragmentProcessor(std::unique_ptr<GrFragmentProcessor>, 80 bool onIsEqual(const GrFragmentProcessor&) const override; 90 using INHERITED = GrFragmentProcessor;
|
D | GrMatrixConvolutionEffect.h | 20 class GrMatrixConvolutionEffect : public GrFragmentProcessor { 27 static std::unique_ptr<GrFragmentProcessor> Make(GrRecordingContext*, 41 std::unique_ptr<GrFragmentProcessor> clone() const override; 60 using MakeResult = std::tuple<KernelWrapper, std::unique_ptr<GrFragmentProcessor>>; 99 GrMatrixConvolutionEffect(std::unique_ptr<GrFragmentProcessor> child, 101 std::unique_ptr<GrFragmentProcessor> kernelFP, 113 bool onIsEqual(const GrFragmentProcessor&) const override; 123 using INHERITED = GrFragmentProcessor;
|
D | GrConvexPolyEffect.cpp | 19 GrFPResult GrConvexPolyEffect::Make(std::unique_ptr<GrFragmentProcessor> inputFP, in Make() 32 GrFragmentProcessor::ModulateRGBA(std::move(inputFP), SK_PMColor4fWHITE)); in Make() 39 GrFragmentProcessor::ModulateRGBA(std::move(inputFP), SK_PMColor4fTRANSPARENT)); in Make() 96 std::unique_ptr<GrFragmentProcessor::ProgramImpl> GrConvexPolyEffect::onMakeProgramImpl() const { in onMakeProgramImpl() 133 const GrFragmentProcessor& fp) override { in onMakeProgramImpl() 149 GrConvexPolyEffect::GrConvexPolyEffect(std::unique_ptr<GrFragmentProcessor> inputFP, in GrConvexPolyEffect() 177 std::unique_ptr<GrFragmentProcessor> GrConvexPolyEffect::clone() const { in clone() 178 return std::unique_ptr<GrFragmentProcessor>(new GrConvexPolyEffect(*this)); in clone() 181 bool GrConvexPolyEffect::onIsEqual(const GrFragmentProcessor& other) const { in onIsEqual() 194 std::unique_ptr<GrFragmentProcessor> GrConvexPolyEffect::TestCreate(GrProcessorTestData* d) { in GR_DEFINE_FRAGMENT_PROCESSOR_TEST() [all …]
|
/external/skia/gm/ |
D | fp_sample_chaining.cpp | 26 class UniformMatrixEffect : public GrFragmentProcessor { 30 UniformMatrixEffect(std::unique_ptr<GrFragmentProcessor> child) in UniformMatrixEffect() 31 : GrFragmentProcessor(CLASS_ID, kNone_OptimizationFlags) { in UniformMatrixEffect() 38 bool onIsEqual(const GrFragmentProcessor& that) const override { return this == &that; } in onIsEqual() 39 std::unique_ptr<GrFragmentProcessor> clone() const override { return nullptr; } in clone() 56 const GrFragmentProcessor& proc) override { in onMakeProgramImpl() 67 class ExplicitCoordEffect : public GrFragmentProcessor { 71 ExplicitCoordEffect(std::unique_ptr<GrFragmentProcessor> child) in ExplicitCoordEffect() 72 : GrFragmentProcessor(CLASS_ID, kNone_OptimizationFlags) { in ExplicitCoordEffect() 79 bool onIsEqual(const GrFragmentProcessor& that) const override { return this == &that; } in onIsEqual() [all …]
|
D | destcolor.cpp | 27 class DestColorTestFP : public GrFragmentProcessor { 29 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> child) { in Make() 30 return std::unique_ptr<GrFragmentProcessor>(new DestColorTestFP(std::move(child))); in Make() 33 std::unique_ptr<GrFragmentProcessor> clone() const override { in clone() 34 return std::unique_ptr<GrFragmentProcessor>(new DestColorTestFP(*this)); in clone() 38 DestColorTestFP(std::unique_ptr<GrFragmentProcessor> child) in DestColorTestFP() 48 bool onIsEqual(const GrFragmentProcessor&) const override { return true; } in onIsEqual() 62 using INHERITED = GrFragmentProcessor; 89 DestColorTestFP::Make(GrFragmentProcessor::SurfaceColor()));
|
D | fpcoordinateoverride.cpp | 33 class SampleCoordEffect : public GrFragmentProcessor { 37 SampleCoordEffect(std::unique_ptr<GrFragmentProcessor> child) in SampleCoordEffect() 44 std::unique_ptr<GrFragmentProcessor> clone() const override { in clone() 51 bool onIsEqual(const GrFragmentProcessor&) const override { in onIsEqual() 58 using INHERITED = GrFragmentProcessor; 61 std::unique_ptr<GrFragmentProcessor::ProgramImpl> SampleCoordEffect::onMakeProgramImpl() const { in onMakeProgramImpl() 90 std::unique_ptr<GrFragmentProcessor> imgFP = 92 auto fp = std::unique_ptr<GrFragmentProcessor>(new SampleCoordEffect(std::move(imgFP)));
|
/external/skia/tests/ |
D | ProgramsTest.cpp | 67 class BigKeyProcessor : public GrFragmentProcessor { 69 static std::unique_ptr<GrFragmentProcessor> Make() { in Make() 70 return std::unique_ptr<GrFragmentProcessor>(new BigKeyProcessor); in Make() 86 std::unique_ptr<GrFragmentProcessor> clone() const override { return Make(); } in clone() 95 bool onIsEqual(const GrFragmentProcessor&) const override { return true; } in onIsEqual() 99 using INHERITED = GrFragmentProcessor; 106 std::unique_ptr<GrFragmentProcessor> BigKeyProcessor::TestCreate(GrProcessorTestData*) { in GR_DEFINE_FRAGMENT_PROCESSOR_TEST() 113 class BlockInputFragmentProcessor : public GrFragmentProcessor { 115 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> fp) { in Make() 116 return std::unique_ptr<GrFragmentProcessor>(new BlockInputFragmentProcessor(std::move(fp))); in Make() [all …]
|
/external/skia/src/effects/ |
D | SkTableColorFilter.cpp | 92 GrFPResult asFragmentProcessor(std::unique_ptr<GrFragmentProcessor> inputFP, 162 class ColorTableEffect : public GrFragmentProcessor { 164 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> inputFP, 172 std::unique_ptr<GrFragmentProcessor> clone() const override { in clone() 173 return std::unique_ptr<GrFragmentProcessor>(new ColorTableEffect(*this)); in clone() 184 bool onIsEqual(const GrFragmentProcessor&) const override { return true; } in onIsEqual() 186 ColorTableEffect(std::unique_ptr<GrFragmentProcessor> inputFP, GrSurfaceProxyView view); 192 using INHERITED = GrFragmentProcessor; 195 ColorTableEffect::ColorTableEffect(std::unique_ptr<GrFragmentProcessor> inputFP, in ColorTableEffect() 207 std::unique_ptr<GrFragmentProcessor::ProgramImpl> ColorTableEffect::onMakeProgramImpl() const { in onMakeProgramImpl() [all …]
|
/external/skia/src/gpu/ganesh/glsl/ |
D | GrGLSLProgramBuilder.h | 84 bool fragmentProcessorHasCoordsParam(const GrFragmentProcessor*); 107 std::vector<std::unique_ptr<GrFragmentProcessor::ProgramImpl>> fFPImpls; 143 SkString emitRootFragProc(const GrFragmentProcessor& fp, 144 GrFragmentProcessor::ProgramImpl& impl, 148 void writeChildFPFunctions(const GrFragmentProcessor& fp, 149 GrFragmentProcessor::ProgramImpl& impl); 151 void writeFPFunction(const GrFragmentProcessor& fp, GrFragmentProcessor::ProgramImpl& impl); 160 void verify(const GrFragmentProcessor&);
|
/external/skia/src/gpu/ganesh/gradients/ |
D | GrGradientShader.cpp | 43 static std::unique_ptr<GrFragmentProcessor> make_textured_colorizer(const SkPMColor4f* colors, in make_textured_colorizer() 76 static std::unique_ptr<GrFragmentProcessor> make_single_interval_colorizer(const SkPMColor4f& start, in make_single_interval_colorizer() 93 static std::unique_ptr<GrFragmentProcessor> make_dual_interval_colorizer(const SkPMColor4f& c0, in make_dual_interval_colorizer() 142 static std::unique_ptr<GrFragmentProcessor> make_unrolled_colorizer(int intervalCount, in make_unrolled_colorizer() 254 static std::unique_ptr<GrFragmentProcessor> make_looping_colorizer(int intervalCount, in make_looping_colorizer() 386 static std::unique_ptr<GrFragmentProcessor> make_unrolled_binary_colorizer( in make_unrolled_binary_colorizer() 408 static std::unique_ptr<GrFragmentProcessor> make_looping_binary_colorizer(const SkPMColor4f* colors, in make_looping_binary_colorizer() 441 static std::unique_ptr<GrFragmentProcessor> make_colorizer(const SkPMColor4f* colors, in make_colorizer() 492 auto makeDualIntervalColorizer = [&]() -> std::unique_ptr<GrFragmentProcessor> { in make_colorizer() 517 std::unique_ptr<GrFragmentProcessor> colorizer = makeDualIntervalColorizer(); in make_colorizer() [all …]
|