Lines Matching refs:optimizations
357 GrXferProcessor::OptFlags onGetOptimizations(const GrPipelineOptimizations& optimizations,
475 PorterDuffXferProcessor::onGetOptimizations(const GrPipelineOptimizations& optimizations,
491 if (optimizations.fCoveragePOI.isSolidWhite()) {
494 if (optimizations.fColorPOI.allStagesMultiplyInput() &&
496 !optimizations.fCoveragePOI.isFourChannelOutput()) {
597 GrXferProcessor::OptFlags onGetOptimizations(const GrPipelineOptimizations& optimizations,
687 PDLCDXferProcessor::onGetOptimizations(const GrPipelineOptimizations& optimizations,
739 const GrPipelineOptimizations& optimizations,
742 if (optimizations.fOverrides.fUsePLSDstRead) {
746 if (optimizations.fCoveragePOI.isFourChannelOutput()) {
748 kRGBA_GrColorComponentFlags == optimizations.fColorPOI.validFlags() &&
754 return PDLCDXferProcessor::Create(fXfermode, optimizations.fColorPOI);
756 blendFormula = get_lcd_blend_formula(optimizations.fCoveragePOI, fXfermode);
758 blendFormula = get_blend_formula(optimizations.fColorPOI, optimizations.fCoveragePOI,
802 const GrPipelineOptimizations& optimizations,
811 if (optimizations.fCoveragePOI.isFourChannelOutput()) {
813 kRGBA_GrColorComponentFlags == optimizations.fColorPOI.validFlags() &&
817 return get_lcd_blend_formula(optimizations.fCoveragePOI, fXfermode).hasSecondaryOutput();
821 return get_blend_formula(optimizations.fColorPOI, optimizations.fCoveragePOI, hasMixedSamples,
857 const GrPipelineOptimizations& optimizations,
860 if (optimizations.fOverrides.fUsePLSDstRead) {
863 if (!optimizations.fCoveragePOI.isFourChannelOutput() &&
864 !(optimizations.fCoveragePOI.isSolidWhite() &&
866 optimizations.fColorPOI.isOpaque())) {
875 if (optimizations.fCoveragePOI.isFourChannelOutput()) {
876 if (kRGBA_GrColorComponentFlags == optimizations.fColorPOI.validFlags() &&
883 return PDLCDXferProcessor::Create(SkXfermode::kSrcOver_Mode, optimizations.fColorPOI);
885 blendFormula = get_lcd_blend_formula(optimizations.fCoveragePOI, SkXfermode::kSrcOver_Mode);
887 blendFormula = get_blend_formula(optimizations.fColorPOI, optimizations.fCoveragePOI,
900 const GrPipelineOptimizations& optimizations,
910 if (optimizations.fCoveragePOI.isFourChannelOutput()) {
911 if (kRGBA_GrColorComponentFlags == optimizations.fColorPOI.validFlags() &&
915 return get_lcd_blend_formula(optimizations.fCoveragePOI,
920 return get_blend_formula(optimizations.fColorPOI, optimizations.fCoveragePOI,