Home
last modified time | relevance | path

Searched refs:blendInfo (Results 1 – 17 of 17) sorted by relevance

/third_party/skia/src/gpu/effects/
DGrCoverageSetOpXP.cpp32 void onGetBlendInfo(GrXferProcessor::BlendInfo* blendInfo) const override;
66 void CoverageSetOpXP::onGetBlendInfo(GrXferProcessor::BlendInfo* blendInfo) const { in onGetBlendInfo()
69 blendInfo->fSrcBlend = kOne_GrBlendCoeff; in onGetBlendInfo()
70 blendInfo->fDstBlend = kZero_GrBlendCoeff; in onGetBlendInfo()
73 blendInfo->fSrcBlend = kDC_GrBlendCoeff; in onGetBlendInfo()
74 blendInfo->fDstBlend = kZero_GrBlendCoeff; in onGetBlendInfo()
77 blendInfo->fSrcBlend = kOne_GrBlendCoeff; in onGetBlendInfo()
78 blendInfo->fDstBlend = kISC_GrBlendCoeff; in onGetBlendInfo()
81 blendInfo->fSrcBlend = kIDC_GrBlendCoeff; in onGetBlendInfo()
82 blendInfo->fDstBlend = kISC_GrBlendCoeff; in onGetBlendInfo()
[all …]
DGrDisableColorXP.cpp29 void onGetBlendInfo(GrXferProcessor::BlendInfo* blendInfo) const override { in onGetBlendInfo()
30 blendInfo->fWriteColor = false; in onGetBlendInfo()
DGrPorterDuffXferProcessor.cpp392 void onGetBlendInfo(GrXferProcessor::BlendInfo* blendInfo) const override { in onGetBlendInfo()
393 blendInfo->fEquation = fBlendFormula.equation(); in onGetBlendInfo()
394 blendInfo->fSrcBlend = fBlendFormula.srcCoeff(); in onGetBlendInfo()
395 blendInfo->fDstBlend = fBlendFormula.dstCoeff(); in onGetBlendInfo()
396 blendInfo->fWriteColor = fBlendFormula.modifiesDst(); in onGetBlendInfo()
552 void onGetBlendInfo(GrXferProcessor::BlendInfo* blendInfo) const override { in onGetBlendInfo()
553 blendInfo->fSrcBlend = kConstC_GrBlendCoeff; in onGetBlendInfo()
554 blendInfo->fDstBlend = kISC_GrBlendCoeff; in onGetBlendInfo()
555 blendInfo->fBlendConstant = fBlendConstant; in onGetBlendInfo()
DGrCustomXfermode.cpp176 void CustomXP::onGetBlendInfo(BlendInfo* blendInfo) const { in onGetBlendInfo()
178 blendInfo->fEquation = fHWBlendEquation; in onGetBlendInfo()
/third_party/skia/src/gpu/
DGrPipeline.cpp82 const GrXferProcessor::BlendInfo& blendInfo = this->getXferProcessor().getBlendInfo(); in genKey() local
89 b->addBool(blendInfo.fWriteColor, "writeColor"); in genKey()
90 b->addBits(kBlendCoeffSize, blendInfo.fSrcBlend, "srcBlend"); in genKey()
91 b->addBits(kBlendCoeffSize, blendInfo.fDstBlend, "dstBlend"); in genKey()
92 b->addBits(kBlendEquationSize, blendInfo.fEquation, "equation"); in genKey()
DGrXferProcessor.h104 BlendInfo blendInfo; in GR_MAKE_BITFIELD_CLASS_OPS() local
106 this->onGetBlendInfo(&blendInfo); in GR_MAKE_BITFIELD_CLASS_OPS()
108 return blendInfo; in GR_MAKE_BITFIELD_CLASS_OPS()
/third_party/skia/src/gpu/dawn/
DGrDawnCaps.cpp152 GrXferProcessor::BlendInfo blendInfo = pipeline.getXferProcessor().getBlendInfo(); in get_blend_info_key() local
159 uint32_t key = blendInfo.fWriteColor; in get_blend_info_key()
160 key |= (blendInfo.fSrcBlend << kBlendWriteShift); in get_blend_info_key()
161 key |= (blendInfo.fDstBlend << (kBlendWriteShift + kBlendCoeffShift)); in get_blend_info_key()
162 key |= (blendInfo.fEquation << (kBlendWriteShift + 2 * kBlendCoeffShift)); in get_blend_info_key()
DGrDawnOpsRenderPass.cpp130 GrXferProcessor::BlendInfo blendInfo = pipeline.getXferProcessor().getBlendInfo(); in applyState() local
131 const float* c = blendInfo.fBlendConstant.vec(); in applyState()
DGrDawnProgramBuilder.cpp177 GrXferProcessor::BlendInfo blendInfo = pipeline.getXferProcessor().getBlendInfo(); in create_blend_state() local
178 GrBlendEquation equation = blendInfo.fEquation; in create_blend_state()
179 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in create_blend_state()
180 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in create_blend_state()
/third_party/skia/src/gpu/vk/
DGrVkPipeline.cpp389 static void setup_color_blend_state(const GrXferProcessor::BlendInfo& blendInfo, in setup_color_blend_state() argument
392 GrBlendEquation equation = blendInfo.fEquation; in setup_color_blend_state()
393 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in setup_color_blend_state()
394 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in setup_color_blend_state()
408 if (!blendInfo.fWriteColor) { in setup_color_blend_state()
479 const GrXferProcessor::BlendInfo& blendInfo, in Make() argument
513 setup_color_blend_state(blendInfo, &colorBlendInfo, attachmentStates); in Make()
656 const GrXferProcessor::BlendInfo& blendInfo = xferProcessor.getBlendInfo(); in SetDynamicBlendConstantState() local
657 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in SetDynamicBlendConstantState()
658 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in SetDynamicBlendConstantState()
[all …]
/third_party/skia/src/gpu/d3d/
DGrD3DOpsRenderPass.cpp96 const GrXferProcessor::BlendInfo& blendInfo = xferProcessor.getBlendInfo(); in set_blend_factor() local
97 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in set_blend_factor()
98 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in set_blend_factor()
102 SkPMColor4f blendConst = swizzle.applyTo(blendInfo.fBlendConstant); in set_blend_factor()
DGrD3DPipelineStateBuilder.cpp355 const GrXferProcessor::BlendInfo& blendInfo = pipeline.getXferProcessor().getBlendInfo(); in fill_in_blend_state() local
357 GrBlendEquation equation = blendInfo.fEquation; in fill_in_blend_state()
358 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in fill_in_blend_state()
359 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in fill_in_blend_state()
373 if (!blendInfo.fWriteColor) { in fill_in_blend_state()
/third_party/skia/src/gpu/mtl/
DGrMtlPipelineState.mm167 const GrXferProcessor::BlendInfo& blendInfo = xferProcessor.getBlendInfo();
168 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend;
169 GrBlendCoeff dstCoeff = blendInfo.fDstBlend;
172 SkPMColor4f blendConst = swizzle.applyTo(blendInfo.fBlendConstant);
DGrMtlPipelineStateBuilder.mm351 const GrXferProcessor::BlendInfo& blendInfo = pipeline.getXferProcessor().getBlendInfo();
353 GrBlendEquation equation = blendInfo.fEquation;
354 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend;
355 GrBlendCoeff dstCoeff = blendInfo.fDstBlend;
379 if (blendInfo.fWriteColor) {
385 writer->writeBool(blendInfo.fWriteColor);
/third_party/skia/tests/
DGrPorterDuffTest.cpp1041 GrXferProcessor::BlendInfo blendInfo = xp_opaque->getBlendInfo(); in test_lcd_coverage_fallback_case() local
1042 TEST_ASSERT(blendInfo.fWriteColor); in test_lcd_coverage_fallback_case()
1056 blendInfo = xp->getBlendInfo(); in test_lcd_coverage_fallback_case()
1057 TEST_ASSERT(blendInfo.fWriteColor); in test_lcd_coverage_fallback_case()
/third_party/skia/src/gpu/gl/
DGrGLGpu.cpp2536 const GrXferProcessor::BlendInfo& blendInfo, const GrSwizzle& swizzle) { in flushBlendAndColorWrite() argument
2537 if (this->glCaps().neverDisableColorWrites() && !blendInfo.fWriteColor) { in flushBlendAndColorWrite()
2547 GrBlendEquation equation = blendInfo.fEquation; in flushBlendAndColorWrite()
2548 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in flushBlendAndColorWrite()
2549 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in flushBlendAndColorWrite()
2554 !blendInfo.fWriteColor; in flushBlendAndColorWrite()
2614 SkPMColor4f blendConst = swizzle.applyTo(blendInfo.fBlendConstant); in flushBlendAndColorWrite()
2623 this->flushColorWrite(blendInfo.fWriteColor); in flushBlendAndColorWrite()
DGrGLGpu.h362 void flushBlendAndColorWrite(const GrXferProcessor::BlendInfo& blendInfo, const GrSwizzle&);