Home
last modified time | relevance | path

Searched refs:GrXferProcessor (Results 1 – 25 of 31) sorted by relevance

12

/external/skia/src/gpu/effects/
DGrDisableColorXP.cpp19 class DisableColorXP : public GrXferProcessor {
21 static GrXferProcessor* Create() { return new DisableColorXP; } in Create()
32 GrXferProcessor::OptFlags onGetOptimizations(const GrPipelineOptimizations& optimizations, in onGetOptimizations()
36 return GrXferProcessor::kIgnoreColor_OptFlag | GrXferProcessor::kIgnoreCoverage_OptFlag; in onGetOptimizations()
41 void onGetBlendInfo(GrXferProcessor::BlendInfo* blendInfo) const override;
43 bool onIsEqual(const GrXferProcessor& xpBase) const override { in onIsEqual()
47 typedef GrXferProcessor INHERITED;
69 void onSetData(const GrGLSLProgramDataManager&, const GrXferProcessor&) override {} in onSetData() argument
86 void DisableColorXP::onGetBlendInfo(GrXferProcessor::BlendInfo* blendInfo) const { in onGetBlendInfo()
96 GrXferProcessor*
DGrCoverageSetOpXP.cpp20 class CoverageSetOpXP : public GrXferProcessor {
22 static GrXferProcessor* Create(SkRegion::Op regionOp, bool invertCoverage) { in Create()
37 GrXferProcessor::OptFlags onGetOptimizations(const GrPipelineOptimizations& optimizations,
44 void onGetBlendInfo(GrXferProcessor::BlendInfo* blendInfo) const override;
46 bool onIsEqual(const GrXferProcessor& xpBase) const override { in onIsEqual()
55 typedef GrXferProcessor INHERITED;
85 void onSetData(const GrGLSLProgramDataManager&, const GrXferProcessor&) override {}; in onSetData() argument
110 GrXferProcessor::OptFlags
116 return GrXferProcessor::kIgnoreColor_OptFlag; in onGetOptimizations()
119 void CoverageSetOpXP::onGetBlendInfo(GrXferProcessor::BlendInfo* blendInfo) const { in onGetBlendInfo()
[all …]
DGrPorterDuffXferProcessor.cpp344 class PorterDuffXferProcessor : public GrXferProcessor {
357 GrXferProcessor::OptFlags onGetOptimizations(const GrPipelineOptimizations& optimizations,
366 void onGetBlendInfo(GrXferProcessor::BlendInfo* blendInfo) const override { in onGetBlendInfo()
373 bool onIsEqual(const GrXferProcessor& xpBase) const override { in onIsEqual()
380 typedef GrXferProcessor INHERITED;
458 void onSetData(const GrGLSLProgramDataManager&, const GrXferProcessor&) override {} in onSetData() argument
474 GrXferProcessor::OptFlags
479 GrXferProcessor::OptFlags optFlags = GrXferProcessor::kNone_OptFlags; in onGetOptimizations()
482 optFlags |= GrXferProcessor::kSkipDraw_OptFlag; in onGetOptimizations()
484 optFlags |= (GrXferProcessor::kIgnoreColor_OptFlag | in onGetOptimizations()
[all …]
DGrCustomXfermode.cpp78 class CustomXP : public GrXferProcessor {
106 GrXferProcessor::OptFlags onGetOptimizations(const GrPipelineOptimizations& optimizations,
117 bool onIsEqual(const GrXferProcessor& xpBase) const override;
122 typedef GrXferProcessor INHERITED;
129 GLCustomXP(const GrXferProcessor&) {} in GLCustomXP() argument
132 static void GenKey(const GrXferProcessor& p, const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) { in GenKey()
171 const GrXferProcessor& proc) override { in emitBlendCodeForDstRead()
182 void onSetData(const GrGLSLProgramDataManager&, const GrXferProcessor&) override {} in onSetData() argument
198 bool CustomXP::onIsEqual(const GrXferProcessor& other) const { in onIsEqual()
203 GrXferProcessor::OptFlags CustomXP::onGetOptimizations(const GrPipelineOptimizations& optimizations, in onGetOptimizations()
[all …]
DGrDisableColorXP.h29 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps,
/external/skia/src/gpu/
DGrXferProcessor.cpp14 GrXferProcessor::GrXferProcessor() in GrXferProcessor() function in GrXferProcessor
20 GrXferProcessor::GrXferProcessor(const DstTexture* dstTexture, in GrXferProcessor() function in GrXferProcessor
35 GrXferProcessor::OptFlags GrXferProcessor::getOptimizations( in getOptimizations()
40 GrXferProcessor::OptFlags flags = this->onGetOptimizations(optimizations, in getOptimizations()
47 SkASSERT(!(flags & GrXferProcessor::kIgnoreCoverage_OptFlag)); in getOptimizations()
49 flags |= GrXferProcessor::kIgnoreCoverage_OptFlag; in getOptimizations()
55 bool GrXferProcessor::hasSecondaryOutput() const { in hasSecondaryOutput()
62 void GrXferProcessor::getBlendInfo(BlendInfo* blendInfo) const { in getBlendInfo()
71 void GrXferProcessor::getGLSLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const { in getGLSLProcessorKey()
88 GrXferBarrierType GrXferProcessor::xferBarrierType(const GrRenderTarget* rt, in xferBarrierType()
[all …]
DGrPipeline.cpp25 SkAutoTUnref<GrXferProcessor> xferProcessor; in CreateAt()
47 GrXferProcessor::OptFlags optFlags = GrXferProcessor::kNone_OptFlags; in CreateAt()
49 const GrXferProcessor* xpForOpts = xferProcessor ? xferProcessor.get() : in CreateAt()
59 if (GrXferProcessor::kSkipDraw_OptFlag & optFlags) { in CreateAt()
64 if (SkToBool(GrXferProcessor::kIgnoreColor_OptFlag & optFlags)) { in CreateAt()
120 if (!SkToBool(optFlags & GrXferProcessor::kIgnoreColor_OptFlag)) { in CreateAt()
127 if (!SkToBool(optFlags & GrXferProcessor::kIgnoreCoverage_OptFlag)) { in CreateAt()
133 if (SkToBool(optFlags & GrXferProcessor::kCanTweakAlphaForCoverage_OptFlag)) { in CreateAt()
171 const GrXferProcessor& xfer = this->getXferProcessor(); in addDependenciesTo()
181 GrXferProcessor::OptFlags flags, in adjustProgramFromOptimizations()
[all …]
DGrPipeline.h54 GrXferProcessor::DstTexture fDstTexture;
109 const GrXferProcessor& getXferProcessor() const { in getXferProcessor()
173 GrXferProcessor::OptFlags,
184 void setOutputStateInfo(const GrPipelineBuilder& ds, GrXferProcessor::OptFlags,
195 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor;
DGrDrawTarget.h228 GrXferProcessor::DstTexture*,
/external/skia/src/gpu/glsl/
DGrGLSLXferProcessor.h14 class GrXferProcessor; variable
30 const GrXferProcessor& xp, in EmitArgs()
51 const GrXferProcessor& fXP;
72 void setData(const GrGLSLProgramDataManager& pdm, const GrXferProcessor& xp);
80 const GrXferProcessor& proc);
104 const GrXferProcessor&) { in emitBlendCodeForDstRead() argument
108 virtual void onSetData(const GrGLSLProgramDataManager&, const GrXferProcessor&) = 0;
DGrGLSLXferProcessor.cpp74 void GrGLSLXferProcessor::setData(const GrGLSLProgramDataManager& pdm, const GrXferProcessor& xp) { in setData()
96 const GrXferProcessor& proc) { in DefaultCoverageModulation()
DGrGLSLProgramBuilder.h137 void emitAndInstallXferProc(const GrXferProcessor&,
145 void verify(const GrXferProcessor&);
DGrGLSLProgramBuilder.cpp156 void GrGLSLProgramBuilder::emitAndInstallXferProc(const GrXferProcessor& xp, in emitAndInstallXferProc()
221 void GrGLSLProgramBuilder::verify(const GrXferProcessor& xp) { in verify()
/external/skia/include/gpu/
DGrXferProcessor.h52 class GrXferProcessor : public GrProcessor {
215 bool isEqual(const GrXferProcessor& that) const { in isEqual()
235 GrXferProcessor();
236 GrXferProcessor(const DstTexture*, bool willReadDstColor, bool hasMixedSamples);
276 virtual bool onIsEqual(const GrXferProcessor&) const = 0;
286 GR_MAKE_BITFIELD_OPS(GrXferProcessor::OptFlags);
303 typedef GrXferProcessor::DstTexture DstTexture;
304 GrXferProcessor* createXferProcessor(const GrPipelineOptimizations& optimizations,
354 virtual GrXferProcessor* onCreateXferProcessor(const GrCaps& caps,
/external/skia/include/gpu/effects/
DGrPorterDuffXferProcessor.h27 static GrXferProcessor* CreateSrcOverXferProcessor(const GrCaps& caps,
30 const GrXferProcessor::DstTexture*);
33 static const GrXferProcessor& SimpleSrcOverXP();
58 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps,
73 static void TestGetXPOutputTypes(const GrXferProcessor*, int* outPrimary, int* outSecondary);
DGrCoverageSetOpXP.h32 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps,
/external/skia/tools/debugger/
DSkOverdrawMode.cpp143 class OverdrawXP : public GrXferProcessor {
155 GrXferProcessor::OptFlags onGetOptimizations(const GrPipelineOptimizations& optimizations, in onGetOptimizations()
160 return GrXferProcessor::kIgnoreColor_OptFlag; in onGetOptimizations()
165 bool onIsEqual(const GrXferProcessor&) const override { return true; } in onIsEqual()
167 typedef GrXferProcessor INHERITED;
188 const GrXferProcessor& proc) override { in emitBlendCodeForDstRead()
196 void onSetData(const GrGLSLProgramDataManager&, const GrXferProcessor&) override { }; in onSetData() argument
225 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, in onCreateXferProcessor()
/external/skia/src/effects/
DSkArithmeticMode_gpu.cpp138 class ArithmeticXP : public GrXferProcessor {
154 GrXferProcessor::OptFlags onGetOptimizations(const GrPipelineOptimizations& optimizations,
161 bool onIsEqual(const GrXferProcessor& xpBase) const override { in onIsEqual()
176 typedef GrXferProcessor INHERITED;
204 const GrXferProcessor& proc) override { in emitBlendCodeForDstRead()
218 const GrXferProcessor& processor) override { in onSetData()
249 GrXferProcessor::OptFlags ArithmeticXP::onGetOptimizations( in onGetOptimizations()
254 return GrXferProcessor::kNone_OptFlags; in onGetOptimizations()
265 GrXferProcessor*
DSkPixelXorXfermode.cpp228 class PixelXorXP : public GrXferProcessor {
243 GrXferProcessor::OptFlags onGetOptimizations(const GrPipelineOptimizations& optimizations, in onGetOptimizations()
247 return GrXferProcessor::kNone_OptFlags; in onGetOptimizations()
252 bool onIsEqual(const GrXferProcessor& xpBase) const override { in onIsEqual()
260 typedef GrXferProcessor INHERITED;
281 const GrXferProcessor& proc) override { in emitBlendCodeForDstRead()
295 const GrXferProcessor& processor) override { in onSetData()
336 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, in onCreateXferProcessor()
DSkAvoidXfermode.cpp351 class AvoidXP : public GrXferProcessor {
371 GrXferProcessor::OptFlags onGetOptimizations(const GrPipelineOptimizations& optimizations, in onGetOptimizations()
375 return GrXferProcessor::kNone_OptFlags; in onGetOptimizations()
380 bool onIsEqual(const GrXferProcessor& xpBase) const override { in onIsEqual()
392 typedef GrXferProcessor INHERITED;
413 const GrXferProcessor& proc) override { in emitBlendCodeForDstRead()
439 const GrXferProcessor& processor) override { in onSetData()
483 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, in onCreateXferProcessor()
DSkArithmeticMode_gpu.h90 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps,
/external/skia/tests/
DGrPorterDuffTest.cpp60 kNone_OptFlags = GrXferProcessor::kNone_OptFlags,
61 kSkipDraw_OptFlag = GrXferProcessor::kSkipDraw_OptFlag,
62 kIgnoreColor_OptFlag = GrXferProcessor::kIgnoreColor_OptFlag,
63 kIgnoreCoverage_OptFlag = GrXferProcessor::kIgnoreCoverage_OptFlag,
64 kCanTweakAlphaForCoverage_OptFlag = GrXferProcessor::kCanTweakAlphaForCoverage_OptFlag
73 SkAutoTUnref<GrXferProcessor> xp( in XPInfo()
88 GrXferProcessor::BlendInfo fBlendInfo;
91 static void GetXPOutputTypes(const GrXferProcessor* xp, int* outPrimary, int* outSecondary) { in GetXPOutputTypes()
1127 SkAutoTUnref<GrXferProcessor> xp( in test_lcd_coverage_fallback_case()
1142 GrXferProcessor::BlendInfo blendInfo; in test_lcd_coverage_fallback_case()
[all …]
/external/skia/src/gpu/vk/
DGrVkProgramDesc.cpp119 const GrXferProcessor& xp = pipeline.getXferProcessor(); in Build()
/external/skia/src/gpu/gl/
DGrGLProgramDesc.cpp132 const GrXferProcessor& xp = pipeline.getXferProcessor(); in Build()
DGrGLProgram.cpp94 const GrXferProcessor& xp = pipeline.getXferProcessor(); in setData()

12