Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
SkGradientBaseShader::Descriptor Struct Reference

#include <SkGradientBaseShader.h>

Inheritance diagram for SkGradientBaseShader::Descriptor:
SkGradientBaseShader::DescriptorScope

Public Member Functions

 Descriptor ()
 
 ~Descriptor ()
 
 Descriptor (const SkColor4f colors[], sk_sp< SkColorSpace > colorSpace, const SkScalar positions[], int colorCount, SkTileMode mode, const Interpolation &interpolation)
 

Public Attributes

const SkColor4ffColors
 
sk_sp< SkColorSpacefColorSpace
 
const SkScalarfPositions
 
int fColorCount
 
SkTileMode fTileMode
 
Interpolation fInterpolation
 

Detailed Description

Definition at line 39 of file SkGradientBaseShader.h.

Constructor & Destructor Documentation

◆ Descriptor() [1/2]

SkGradientBaseShader::Descriptor::Descriptor ( )

Definition at line 69 of file SkGradientBaseShader.cpp.

69 {
70 sk_bzero(this, sizeof(*this));
72}
sk_bzero(glyphs, sizeof(glyphs))

◆ ~Descriptor()

SkGradientBaseShader::Descriptor::~Descriptor ( )
default

◆ Descriptor() [2/2]

SkGradientBaseShader::Descriptor::Descriptor ( const SkColor4f  colors[],
sk_sp< SkColorSpace colorSpace,
const SkScalar  positions[],
int  colorCount,
SkTileMode  mode,
const Interpolation interpolation 
)

Definition at line 1005 of file SkGradientBaseShader.cpp.

1011 : fColors(colors)
1012 , fColorSpace(std::move(colorSpace))
1013 , fPositions(positions)
1014 , fColorCount(colorCount)
1015 , fTileMode(mode)
1016 , fInterpolation(interpolation) {
1017 SkASSERT(fColorCount > 1);
1018}
#define SkASSERT(cond)
Definition: SkAssert.h:116
PODArray< SkColor > colors
Definition: SkRecords.h:276
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
Definition: switches.h:228

Member Data Documentation

◆ fColorCount

int SkGradientBaseShader::Descriptor::fColorCount

Definition at line 53 of file SkGradientBaseShader.h.

◆ fColors

const SkColor4f* SkGradientBaseShader::Descriptor::fColors

Definition at line 50 of file SkGradientBaseShader.h.

◆ fColorSpace

sk_sp<SkColorSpace> SkGradientBaseShader::Descriptor::fColorSpace

Definition at line 51 of file SkGradientBaseShader.h.

◆ fInterpolation

Interpolation SkGradientBaseShader::Descriptor::fInterpolation

Definition at line 55 of file SkGradientBaseShader.h.

◆ fPositions

const SkScalar* SkGradientBaseShader::Descriptor::fPositions

Definition at line 52 of file SkGradientBaseShader.h.

◆ fTileMode

SkTileMode SkGradientBaseShader::Descriptor::fTileMode

Definition at line 54 of file SkGradientBaseShader.h.


The documentation for this struct was generated from the following files: