Flutter Engine
The Flutter Engine
Typedefs | Functions
GrXferProcessor.cpp File Reference
#include "src/gpu/ganesh/GrXferProcessor.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkString.h"
#include "src/gpu/KeyBuilder.h"
#include "src/gpu/ganesh/GrCaps.h"
#include "src/gpu/ganesh/GrShaderCaps.h"
#include "src/gpu/ganesh/effects/GrCustomXfermode.h"
#include "src/gpu/ganesh/effects/GrPorterDuffXferProcessor.h"
#include "src/gpu/ganesh/glsl/GrGLSLFragmentShaderBuilder.h"
#include <cstdint>

Go to the source code of this file.

Typedefs

using ProgramImpl = GrXferProcessor::ProgramImpl
 

Functions

static void adjust_for_lcd_coverage (GrGLSLXPFragmentBuilder *fragBuilder, const char *srcCoverage, const GrXferProcessor &proc)
 

Typedef Documentation

◆ ProgramImpl

Definition at line 115 of file GrXferProcessor.cpp.

Function Documentation

◆ adjust_for_lcd_coverage()

static void adjust_for_lcd_coverage ( GrGLSLXPFragmentBuilder fragBuilder,
const char *  srcCoverage,
const GrXferProcessor proc 
)
static

Definition at line 120 of file GrXferProcessor.cpp.

122 {
123 if (srcCoverage && proc.isLCD()) {
124 fragBuilder->codeAppendf("%s.a = max(max(%s.r, %s.g), %s.b);",
125 srcCoverage,
126 srcCoverage,
127 srcCoverage,
128 srcCoverage);
129 }
130}
void codeAppendf(const char format[],...) SK_PRINTF_LIKE(2
bool isLCD() const