Flutter Engine
The Flutter Engine
|
#include "include/core/SkBlendMode.h"
#include "include/core/SkColor.h"
#include "include/core/SkPaint.h"
#include "include/private/SkColorData.h"
#include "src/base/SkVx.h"
#include "src/core/SkBlendModePriv.h"
#include "src/core/SkRasterPipeline.h"
#include "src/core/SkRasterPipelineOpContexts.h"
#include "src/core/SkRasterPipelineOpList.h"
#include <optional>
Go to the source code of this file.
Functions | |
bool | SkBlendMode_ShouldPreScaleCoverage (SkBlendMode mode, bool rgb_coverage) |
bool | SkBlendMode_SupportsCoverageAsAlpha (SkBlendMode mode) |
bool | SkBlendMode_AsCoeff (SkBlendMode mode, SkBlendModeCoeff *src, SkBlendModeCoeff *dst) |
void | SkBlendMode_AppendStages (SkBlendMode mode, SkRasterPipeline *p) |
SkPMColor4f | SkBlendMode_Apply (SkBlendMode mode, const SkPMColor4f &src, const SkPMColor4f &dst) |
const char * | SkBlendMode_Name (SkBlendMode bm) |
static bool | just_solid_color (const SkPaint &p) |
SkBlendFastPath | CheckFastPath (const SkPaint &paint, bool dstIsOpaque) |
SkBlendFastPath CheckFastPath | ( | const SkPaint & | paint, |
bool | dstIsOpaque | ||
) |
Given a paint, determine whether the paint's blend mode can be replaced with kSrcOver or not drawn at all. This can inform drawing optimizations.
Definition at line 208 of file SkBlendMode.cpp.
|
static |
Definition at line 204 of file SkBlendMode.cpp.
void SkBlendMode_AppendStages | ( | SkBlendMode | mode, |
SkRasterPipeline * | p | ||
) |
Definition at line 97 of file SkBlendMode.cpp.
SkPMColor4f SkBlendMode_Apply | ( | SkBlendMode | mode, |
const SkPMColor4f & | src, | ||
const SkPMColor4f & | dst | ||
) |
Definition at line 135 of file SkBlendMode.cpp.
bool SkBlendMode_AsCoeff | ( | SkBlendMode | mode, |
SkBlendModeCoeff * | src, | ||
SkBlendModeCoeff * | dst | ||
) |
Returns true if 'mode' is a coefficient-based blend mode (<= kLastCoeffMode). If true is returned, the mode's src and dst coefficient functions are set in 'src' and 'dst'.
Definition at line 57 of file SkBlendMode.cpp.
const char * SkBlendMode_Name | ( | SkBlendMode | blendMode | ) |
Returns name of blendMode as null-terminated C string.
Definition at line 167 of file SkBlendMode.cpp.
bool SkBlendMode_ShouldPreScaleCoverage | ( | SkBlendMode | mode, |
bool | rgb_coverage | ||
) |
Definition at line 21 of file SkBlendMode.cpp.
bool SkBlendMode_SupportsCoverageAsAlpha | ( | SkBlendMode | mode | ) |
Definition at line 53 of file SkBlendMode.cpp.