5#include "flutter/display_list/effects/dl_color_source.h"
7#include "flutter/display_list/dl_sampling_options.h"
8#include "flutter/display_list/effects/dl_runtime_effect.h"
9#include "flutter/fml/logging.h"
31 (stop_count * (
sizeof(uint32_t) +
sizeof(
float)));
33 void* storage = ::operator
new(needed);
35 std::shared_ptr<DlLinearGradientColorSource> ret;
36 ret.reset(
new (storage)
52 (stop_count * (
sizeof(uint32_t) +
sizeof(
float)));
54 void* storage = ::operator
new(needed);
56 std::shared_ptr<DlRadialGradientColorSource> ret;
58 center, radius, stop_count,
colors, stops, tile_mode,
matrix),
74 (stop_count * (
sizeof(uint32_t) +
sizeof(
float)));
76 void* storage = ::operator
new(needed);
78 std::shared_ptr<DlConicalGradientColorSource> ret;
80 start_center, start_radius, end_center, end_radius, stop_count,
96 (stop_count * (
sizeof(uint32_t) +
sizeof(
float)));
98 void* storage = ::operator
new(needed);
100 std::shared_ptr<DlSweepGradientColorSource> ret;
101 ret.reset(
new (storage)
110 std::vector<std::shared_ptr<DlColorSource>> samplers,
111 std::shared_ptr<std::vector<uint8_t>> uniform_data) {
113 return std::make_shared<DlRuntimeEffectColorSource>(
114 std::move(runtime_effect), std::move(samplers), std::move(uniform_data));
static std::shared_ptr< DlConicalGradientColorSource > MakeConical(SkPoint start_center, SkScalar start_radius, SkPoint end_center, SkScalar end_radius, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const SkMatrix *matrix=nullptr)
static std::shared_ptr< DlRuntimeEffectColorSource > MakeRuntimeEffect(sk_sp< DlRuntimeEffect > runtime_effect, std::vector< std::shared_ptr< DlColorSource > > samplers, std::shared_ptr< std::vector< uint8_t > > uniform_data)
static std::shared_ptr< DlLinearGradientColorSource > MakeLinear(const SkPoint start_point, const SkPoint end_point, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const SkMatrix *matrix=nullptr)
static std::shared_ptr< DlSweepGradientColorSource > MakeSweep(SkPoint center, SkScalar start, SkScalar end, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const SkMatrix *matrix=nullptr)
static std::shared_ptr< DlRadialGradientColorSource > MakeRadial(SkPoint center, SkScalar radius, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const SkMatrix *matrix=nullptr)
#define FML_DCHECK(condition)
unsigned useCenter Optional< SkMatrix > matrix
PODArray< SkColor > colors
static void DlGradientDeleter(void *p)