Flutter Engine
The Flutter Engine
Functions
SkSweepGradient.cpp File Reference
#include "src/shaders/gradients/SkSweepGradient.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/core/SkTileMode.h"
#include "include/effects/SkGradientShader.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkFloatingPoint.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 <tuple>
#include <utility>

Go to the source code of this file.

Functions

static std::tuple< SkScalar, SkScalarangles_from_t_coeff (SkScalar tBias, SkScalar tScale)
 
void SkRegisterSweepGradientShaderFlattenable ()
 

Function Documentation

◆ angles_from_t_coeff()

static std::tuple< SkScalar, SkScalar > angles_from_t_coeff ( SkScalar  tBias,
SkScalar  tScale 
)
static

Definition at line 56 of file SkSweepGradient.cpp.

56 {
57 return std::make_tuple(-tBias * 360, (sk_ieee_float_divide(1, tScale) - tBias) * 360);
58}
static constexpr float sk_ieee_float_divide(float numer, float denom)

◆ SkRegisterSweepGradientShaderFlattenable()

void SkRegisterSweepGradientShaderFlattenable ( )

Definition at line 169 of file SkSweepGradient.cpp.

169 {
171}
#define SK_REGISTER_FLATTENABLE(type)