#include "modules/sksg/include/SkSGColorFilter.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorFilter.h"
#include "include/core/SkMatrix.h"
#include "include/private/SkColorData.h"
#include "include/private/base/SkAssert.h"
#include "modules/sksg/include/SkSGPaint.h"
#include "modules/sksg/include/SkSGRenderNode.h"
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <utility>
enum class SkBlendMode;
struct SkPoint;
namespace sksg {
ColorFilter::ColorFilter(sk_sp<RenderNode> child)
: … { … }
void ColorFilter::onRender(SkCanvas* canvas, const RenderContext* ctx) const { … }
const RenderNode* ColorFilter::onNodeAt(const SkPoint& p) const { … }
SkRect ColorFilter::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { … }
sk_sp<ExternalColorFilter> ExternalColorFilter::Make(sk_sp<RenderNode> child) { … }
ExternalColorFilter::ExternalColorFilter(sk_sp<RenderNode> child) : … { … }
ExternalColorFilter::~ExternalColorFilter() = default;
void ExternalColorFilter::onRender(SkCanvas* canvas, const RenderContext* ctx) const { … }
sk_sp<ModeColorFilter> ModeColorFilter::Make(sk_sp<RenderNode> child, sk_sp<Color> color,
SkBlendMode mode) { … }
ModeColorFilter::ModeColorFilter(sk_sp<RenderNode> child, sk_sp<Color> color, SkBlendMode mode)
: … { … }
ModeColorFilter::~ModeColorFilter() { … }
sk_sp<SkColorFilter> ModeColorFilter::onRevalidateFilter() { … }
sk_sp<GradientColorFilter> GradientColorFilter::Make(sk_sp<RenderNode> child,
sk_sp<Color> c0, sk_sp<Color> c1) { … }
sk_sp<GradientColorFilter> GradientColorFilter::Make(sk_sp<RenderNode> child,
std::vector<sk_sp<Color>> colors) { … }
GradientColorFilter::GradientColorFilter(sk_sp<RenderNode> child, std::vector<sk_sp<Color>> colors)
: … { … }
GradientColorFilter::~GradientColorFilter() { … }
namespace {
sk_sp<SkColorFilter> Make2ColorGradient(const sk_sp<Color>& color0, const sk_sp<Color>& color1) { … }
sk_sp<SkColorFilter> MakeNColorGradient(const std::vector<sk_sp<Color>>& colors) { … }
}
sk_sp<SkColorFilter> GradientColorFilter::onRevalidateFilter() { … }
}