Flutter Engine
The Flutter Engine
|
#include <GrModulateAtlasCoverageEffect.h>
Public Member Functions | |
GR_DECL_BITFIELD_CLASS_OPS_FRIENDS (Flags) | |
GrModulateAtlasCoverageEffect (Flags flags, std::unique_ptr< GrFragmentProcessor > inputFP, GrSurfaceProxyView atlasView, const SkMatrix &devToAtlasMatrix, const SkIRect &devIBounds) | |
GrModulateAtlasCoverageEffect (const GrModulateAtlasCoverageEffect &that) | |
const char * | name () const override |
std::unique_ptr< GrFragmentProcessor > | clone () const override |
Public Member Functions inherited from GrFragmentProcessor | |
const GrFragmentProcessor * | parent () const |
std::unique_ptr< ProgramImpl > | makeProgramImpl () const |
void | addToKey (const GrShaderCaps &caps, skgpu::KeyBuilder *b) const |
int | numChildProcessors () const |
int | numNonNullChildProcessors () const |
GrFragmentProcessor * | childProcessor (int index) |
const GrFragmentProcessor * | childProcessor (int index) const |
SkDEBUGCODE (bool isInstantiated() const ;) bool willReadDstColor() const | |
bool | isBlendFunction () const |
bool | usesSampleCoordsDirectly () const |
bool | usesSampleCoords () const |
const SkSL::SampleUsage & | sampleUsage () const |
bool | compatibleWithCoverageAsAlpha () const |
bool | preservesOpaqueInput () const |
bool | hasConstantOutputForConstantInput (SkPMColor4f inputColor, SkPMColor4f *outputColor) const |
bool | hasConstantOutputForConstantInput () const |
void | clearConstantOutputForConstantInputFlag () |
bool | isEqual (const GrFragmentProcessor &that) const |
void | visitProxies (const GrVisitProxyFunc &) const |
void | visitTextureEffects (const std::function< void(const GrTextureEffect &)> &) const |
void | visitWithImpls (const std::function< void(const GrFragmentProcessor &, ProgramImpl &)> &, ProgramImpl &) const |
GrTextureEffect * | asTextureEffect () |
const GrTextureEffect * | asTextureEffect () const |
Public Member Functions inherited from GrProcessor | |
virtual | ~GrProcessor ()=default |
void * | operator new (size_t size) |
void * | operator new (size_t object_size, size_t footer_size) |
void | operator delete (void *target) |
void * | operator new (size_t size, void *placement) |
void | operator delete (void *target, void *placement) |
template<typename T > | |
const T & | cast () const |
ClassID | classID () const |
Private Member Functions | |
void | onAddToKey (const GrShaderCaps &, skgpu::KeyBuilder *b) const override |
bool | onIsEqual (const GrFragmentProcessor &that) const override |
std::unique_ptr< ProgramImpl > | onMakeProgramImpl () const override |
Definition at line 23 of file GrModulateAtlasCoverageEffect.h.
|
strong |
Enumerator | |
---|---|
kNone | |
kInvertCoverage | |
kCheckBounds |
Definition at line 25 of file GrModulateAtlasCoverageEffect.h.
GrModulateAtlasCoverageEffect::GrModulateAtlasCoverageEffect | ( | Flags | flags, |
std::unique_ptr< GrFragmentProcessor > | inputFP, | ||
GrSurfaceProxyView | atlasView, | ||
const SkMatrix & | devToAtlasMatrix, | ||
const SkIRect & | devIBounds | ||
) |
Definition at line 29 of file GrModulateAtlasCoverageEffect.cpp.
GrModulateAtlasCoverageEffect::GrModulateAtlasCoverageEffect | ( | const GrModulateAtlasCoverageEffect & | that | ) |
Definition at line 45 of file GrModulateAtlasCoverageEffect.cpp.
|
inlineoverridevirtual |
Makes a copy of this fragment processor that draws equivalently to the original. If the processor has child processors they are cloned as well.
Implements GrFragmentProcessor.
Definition at line 43 of file GrModulateAtlasCoverageEffect.h.
GrModulateAtlasCoverageEffect::GR_DECL_BITFIELD_CLASS_OPS_FRIENDS | ( | Flags | ) |
|
inlineoverridevirtual |
Human-meaningful string to identify this processor; may be embedded in generated shader code and must be a legal SkSL identifier prefix.
Implements GrProcessor.
Definition at line 39 of file GrModulateAtlasCoverageEffect.h.
|
overrideprivatevirtual |
Implements GrFragmentProcessor.
Definition at line 51 of file GrModulateAtlasCoverageEffect.cpp.
|
inlineoverrideprivatevirtual |
Subclass implements this to support isEqual(). It will only be called if it is known that the two processors are of the same subclass (i.e. have the same ClassID).
Implements GrFragmentProcessor.
Definition at line 50 of file GrModulateAtlasCoverageEffect.h.
|
overrideprivatevirtual |
Returns a new instance of the appropriate ProgramImpl subclass for the given GrFragmentProcessor. It will emit the appropriate code and live with the cached program to setup uniform data for each draw that uses the program.
Implements GrFragmentProcessor.
Definition at line 57 of file GrModulateAtlasCoverageEffect.cpp.