#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>
class SkArenaAlloc;
enum class SkTileMode;
static SkMatrix rad_to_unit_matrix(const SkPoint& center, SkScalar radius) { … }
SkRadialGradient::SkRadialGradient(const SkPoint& center, SkScalar radius, const Descriptor& desc)
: … { … }
SkShaderBase::GradientType SkRadialGradient::asGradient(GradientInfo* info,
SkMatrix* localMatrix) const { … }
sk_sp<SkFlattenable> SkRadialGradient::CreateProc(SkReadBuffer& buffer) { … }
void SkRadialGradient::flatten(SkWriteBuffer& buffer) const { … }
void SkRadialGradient::appendGradientStages(SkArenaAlloc*, SkRasterPipeline* p,
SkRasterPipeline*) const { … }
sk_sp<SkShader> SkGradientShader::MakeRadial(const SkPoint& center, SkScalar radius,
const SkColor4f colors[],
sk_sp<SkColorSpace> colorSpace,
const SkScalar pos[],
int colorCount,
SkTileMode mode,
const Interpolation& interpolation,
const SkMatrix* localMatrix) { … }
sk_sp<SkShader> SkGradientShader::MakeRadial(const SkPoint& center, SkScalar radius,
const SkColor colors[],
const SkScalar pos[],
int colorCount,
SkTileMode mode,
uint32_t flags,
const SkMatrix* localMatrix) { … }
void SkRegisterRadialGradientShaderFlattenable() { … }