Flutter Engine
The Flutter Engine
Functions
SkRadialGradient.cpp File Reference
#include "src/shaders/gradients/SkRadialGradient.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkShader.h"
#include "include/effects/SkGradientShader.h"
#include "include/private/base/SkTArray.h"
#include "src/core/SkRasterPipeline.h"
#include "src/core/SkRasterPipelineOpList.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkWriteBuffer.h"
#include "src/shaders/SkShaderBase.h"
#include "src/shaders/gradients/SkGradientBaseShader.h"
#include <cstdint>
#include <utility>

Go to the source code of this file.

Functions

static SkMatrix rad_to_unit_matrix (const SkPoint &center, SkScalar radius)
 
void SkRegisterRadialGradientShaderFlattenable ()
 

Function Documentation

◆ rad_to_unit_matrix()

static SkMatrix rad_to_unit_matrix ( const SkPoint center,
SkScalar  radius 
)
static

Definition at line 29 of file SkRadialGradient.cpp.

29 {
30 SkScalar inv = SkScalarInvert(radius);
31
33 matrix.setTranslate(-center.fX, -center.fY);
34 matrix.postScale(inv, inv);
35 return matrix;
36}
static SkM44 inv(const SkM44 &m)
Definition: 3d.cpp:26
#define SkScalarInvert(x)
Definition: SkScalar.h:73
static SkScalar center(float pos0, float pos1)
float SkScalar
Definition: extension.cpp:12
unsigned useCenter Optional< SkMatrix > matrix
Definition: SkRecords.h:258

◆ SkRegisterRadialGradientShaderFlattenable()

void SkRegisterRadialGradientShaderFlattenable ( )

Definition at line 135 of file SkRadialGradient.cpp.

135 {
137}
#define SK_REGISTER_FLATTENABLE(type)