Home
last modified time | relevance | path

Searched refs:GrXPFactory (Results 1 – 21 of 21) sorted by relevance

/external/skia/src/gpu/ganesh/
DGrProcessorSet.cpp35 : fXP((const GrXPFactory*)nullptr) { in GrProcessorSet()
154 GrXPFactory::AnalysisProperties props = GrXPFactory::GetAnalysisProperties( in finalize()
156 analysis.fRequiresDstTexture = (props & GrXPFactory::AnalysisProperties::kRequiresDstTexture) || in finalize()
159 SkToBool(props & GrXPFactory::AnalysisProperties::kCompatibleWithCoverageAsAlpha); in finalize()
161 (props & GrXPFactory::AnalysisProperties::kRequiresNonOverlappingDraws) || in finalize()
164 SkToBool(props & GrXPFactory::AnalysisProperties::kUsesNonCoherentHWBlending); in finalize()
166 SkToBool(props & GrXPFactory::AnalysisProperties::kUnaffectedByDstValue); in finalize()
167 if (props & GrXPFactory::AnalysisProperties::kIgnoresInputColor) { in finalize()
183 auto xp = GrXPFactory::MakeXferProcessor(this->xpFactory(), colorAnalysis.outputColor(), in finalize()
DGrPaint.h21 class GrXPFactory; variable
53 void setXPFactory(const GrXPFactory* xpFactory) { in setXPFactory()
89 const GrXPFactory* getXPFactory() const { return fXPFactory; } in getXPFactory()
129 const GrXPFactory* fXPFactory = nullptr;
DGrProcessorUnitTest.h28 class GrXPFactory; variable
113 using GetFn = const GrXPFactory*(GrProcessorTestData*);
117 static const GrXPFactory* Get(GrProcessorTestData* data);
142 static const GrXPFactory* TestGet(GrProcessorTestData*);
176 const GrXPFactory* TestGet(GrProcessorTestData*);
DGrXferProcessor.cpp59 GrXPFactory::AnalysisProperties GrXPFactory::GetAnalysisProperties( in GetAnalysisProperties()
60 const GrXPFactory* factory, in GetAnalysisProperties()
83 sk_sp<const GrXferProcessor> GrXPFactory::MakeXferProcessor(const GrXPFactory* factory, in MakeXferProcessor()
DGrXferProcessor.h194 class GrXPFactory {
231 static sk_sp<const GrXferProcessor> MakeXferProcessor(const GrXPFactory*,
237 static AnalysisProperties GetAnalysisProperties(const GrXPFactory*,
244 constexpr GrXPFactory() {} in GrXPFactory() function
268 GR_MAKE_BITFIELD_CLASS_OPS(GrXPFactory::AnalysisProperties) in GR_MAKE_BITFIELD_CLASS_OPS()
DGrProcessorSet.h19 class GrXPFactory; variable
169 XP(const GrXPFactory* factory) : fFactory(factory) {} in XP()
175 const GrXPFactory* fFactory;
179 const GrXPFactory* xpFactory() const { in xpFactory()
DGrPaint.cpp39 static const GrXPFactory* kSrc = GrPorterDuffXPFactory::Get(SkBlendMode::kSrc); in isConstantBlendedColor()
40 static const GrXPFactory* kClear = GrPorterDuffXPFactory::Get(SkBlendMode::kClear); in isConstantBlendedColor()
DGrProcessorUnitTest.cpp113 const GrXPFactory* GrXPFactoryTestFactory::Get(GrProcessorTestData* data) { in Get()
119 const GrXPFactory* xpf = (*GetFactories())[idx]->fGetProc(data); in Get()
/external/skia/tests/
DAdvancedBlendTest.cpp40 const GrXPFactory* xpf = GrCustomXfermode::Get(blendMode); in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
42 GrXPFactory::AnalysisProperties xpfAnalysis = in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
43 GrXPFactory::GetAnalysisProperties(xpf, opaque, coverage, caps, GrClampType::kAuto); in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
56 !(xpfAnalysis & GrXPFactory::AnalysisProperties::kReadsDstInShader)); in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
67 (xpfAnalysis & GrXPFactory::AnalysisProperties::kReadsDstInShader)); in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
68 if (xpfAnalysis & GrXPFactory::AnalysisProperties::kRequiresDstTexture) { in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
DGrPorterDuffTest.cpp86 static GrProcessorSet::Analysis do_analysis(const GrXPFactory* xpf, in do_analysis()
105 const GrXPFactory* xpf = GrPorterDuffXPFactory::Get(xfermode); in XPInfo()
114 GrXPFactory::MakeXferProcessor(xpf, inputColor, inputCoverage, caps, in XPInfo()
1054 const GrXPFactory* xpf = GrPorterDuffXPFactory::Get(SkBlendMode::kSrcOver); in test_lcd_coverage_fallback_case()
1057 TEST_ASSERT(!(GrXPFactory::GetAnalysisProperties(xpf, color, coverage, caps, autoClamp) & in test_lcd_coverage_fallback_case()
1058 GrXPFactory::AnalysisProperties::kRequiresDstTexture)); in test_lcd_coverage_fallback_case()
1060 GrXPFactory::MakeXferProcessor(xpf, color, coverage, caps, autoClamp)); in test_lcd_coverage_fallback_case()
1072 TEST_ASSERT(!(GrXPFactory::GetAnalysisProperties(xpf, color, coverage, caps, autoClamp) & in test_lcd_coverage_fallback_case()
1073 GrXPFactory::AnalysisProperties::kRequiresDstTexture)); in test_lcd_coverage_fallback_case()
1075 GrXPFactory::MakeXferProcessor(xpf, color, coverage, caps, autoClamp)); in test_lcd_coverage_fallback_case()
[all …]
/external/skia/src/gpu/ganesh/effects/
DGrPorterDuffXferProcessor.h26 class GrPorterDuffXPFactory : public GrXPFactory {
28 static const GrXPFactory* Get(SkBlendMode blendMode);
67 using INHERITED = GrXPFactory;
DGrCoverageSetOpXP.h31 class GrCoverageSetOpXPFactory : public GrXPFactory {
33 static const GrXPFactory* Get(SkRegion::Op regionOp, bool invertCoverage = false);
71 using INHERITED = GrXPFactory;
DGrCustomXfermode.h15 class GrXPFactory; variable
23 const GrXPFactory* Get(SkBlendMode mode);
DGrDisableColorXP.h25 class GrDisableColorXPFactory : public GrXPFactory {
49 using INHERITED = GrXPFactory;
DGrCustomXfermode.cpp206 class CustomXPFactory : public GrXPFactory {
227 using INHERITED = GrXPFactory;
248 GrXPFactory::AnalysisProperties CustomXPFactory::analysisProperties( in analysisProperties()
361 const GrXPFactory* CustomXPFactory::TestGet(GrProcessorTestData* d) { in GR_DEFINE_XP_FACTORY_TEST()
371 const GrXPFactory* GrCustomXfermode::Get(SkBlendMode mode) { in Get()
DGrCoverageSetOpXP.cpp103 const GrXPFactory* GrCoverageSetOpXPFactory::Get(SkRegion::Op regionOp, bool invertCoverage) { in Get()
184 const GrXPFactory* GrCoverageSetOpXPFactory::TestGet(GrProcessorTestData* d) { in GR_DEFINE_XP_FACTORY_TEST()
DGrDisableColorXP.cpp70 const GrXPFactory* GrDisableColorXPFactory::TestGet(GrProcessorTestData*) { in GR_DEFINE_XP_FACTORY_TEST()
DGrPorterDuffXferProcessor.cpp672 const GrXPFactory* GrPorterDuffXPFactory::Get(SkBlendMode blendMode) { in Get()
764 static inline GrXPFactory::AnalysisProperties analysis_properties( in analysis_properties()
767 using AnalysisProperties = GrXPFactory::AnalysisProperties; in analysis_properties()
823 GrXPFactory::AnalysisProperties GrPorterDuffXPFactory::analysisProperties( in analysisProperties()
834 const GrXPFactory* GrPorterDuffXPFactory::TestGet(GrProcessorTestData* d) { in GR_DEFINE_XP_FACTORY_TEST()
915 GrXPFactory::AnalysisProperties GrPorterDuffXPFactory::SrcOverAnalysisProperties( in SrcOverAnalysisProperties()
/external/skia/src/core/
DSkXfermode.cpp162 const GrXPFactory* SkBlendMode_AsXPFactory(SkBlendMode mode) { in SkBlendMode_AsXPFactory()
164 const GrXPFactory* result = GrPorterDuffXPFactory::Get(mode); in SkBlendMode_AsXPFactory()
DSkBlendModePriv.h37 const GrXPFactory* SkBlendMode_AsXPFactory(SkBlendMode);
DSkXfermodePriv.h17 class GrXPFactory; variable