#include <dl_runtime_effect_color_source.h>
Public Member Functions | |
| DlRuntimeEffectColorSource (sk_sp< DlRuntimeEffect > runtime_effect, std::vector< std::shared_ptr< DlColorSource > > samplers, std::shared_ptr< std::vector< uint8_t > > uniform_data) | |
| bool | isUIThreadSafe () const override |
| If the underlying platform data held by this object is held in a way that it can be stored and potentially released from the UI thread, this method returns true. | |
| const DlRuntimeEffectColorSource * | asRuntimeEffect () const override |
| std::shared_ptr< DlColorSource > | shared () const override |
| DlColorSourceType | type () const override |
| size_t | size () const override |
| bool | is_opaque () const override |
| const sk_sp< DlRuntimeEffect > | runtime_effect () const |
| const std::vector< std::shared_ptr< DlColorSource > > | samplers () const |
| const std::shared_ptr< std::vector< uint8_t > > | uniform_data () const |
Public Member Functions inherited from flutter::DlColorSource | |
| virtual bool | isGradient () const |
| If the underlying platform data represents a gradient. | |
| virtual const DlImageColorSource * | asImage () const |
| virtual const DlLinearGradientColorSource * | asLinearGradient () const |
| virtual const DlRadialGradientColorSource * | asRadialGradient () const |
| virtual const DlConicalGradientColorSource * | asConicalGradient () const |
| virtual const DlSweepGradientColorSource * | asSweepGradient () const |
Public Member Functions inherited from flutter::DlAttribute< DlColorSource, DlColorSourceType > | |
| bool | operator== (DlColorSource const &other) const |
| bool | operator!= (DlColorSource const &other) const |
| virtual | ~DlAttribute ()=default |
Protected Member Functions | |
| bool | equals_ (DlColorSource const &other) const override |
Protected Member Functions inherited from flutter::DlColorSource | |
| DlColorSource ()=default | |
Additional Inherited Members | |
Static Public Member Functions inherited from flutter::DlColorSource | |
| static std::shared_ptr< DlColorSource > | MakeImage (const sk_sp< const DlImage > &image, DlTileMode horizontal_tile_mode, DlTileMode vertical_tile_mode, DlImageSampling sampling=DlImageSampling::kLinear, const DlMatrix *matrix=nullptr) |
| static std::shared_ptr< DlColorSource > | MakeLinear (const DlPoint start_point, const DlPoint end_point, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const DlMatrix *matrix=nullptr) |
| static std::shared_ptr< DlColorSource > | MakeLinear (const DlPoint start_point, const DlPoint end_point, uint32_t stop_count, const DlScalar *colors_argb, const float *stops, DlTileMode tile_mode, const DlMatrix *matrix=nullptr) |
| Make a linear gradient. | |
| static std::shared_ptr< DlColorSource > | MakeRadial (DlPoint center, DlScalar radius, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const DlMatrix *matrix=nullptr) |
| static std::shared_ptr< DlColorSource > | MakeRadial (DlPoint center, DlScalar radius, uint32_t stop_count, const DlScalar *colors_argb, const float *stops, DlTileMode tile_mode, const DlMatrix *matrix=nullptr) |
| Make a radial gradient. | |
| static std::shared_ptr< DlColorSource > | MakeConical (DlPoint start_center, DlScalar start_radius, DlPoint end_center, DlScalar end_radius, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const DlMatrix *matrix=nullptr) |
| static std::shared_ptr< DlColorSource > | MakeConical (DlPoint start_center, DlScalar start_radius, DlPoint end_center, DlScalar end_radius, uint32_t stop_count, const DlScalar *colors_argb, const float *stops, DlTileMode tile_mode, const DlMatrix *matrix=nullptr) |
| Make a conical gradient. | |
| static std::shared_ptr< DlColorSource > | MakeSweep (DlPoint center, DlScalar start, DlScalar end, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const DlMatrix *matrix=nullptr) |
| static std::shared_ptr< DlColorSource > | MakeSweep (DlPoint center, DlScalar start, DlScalar end, uint32_t stop_count, const DlScalar *colors_argb, const float *stops, DlTileMode tile_mode, const DlMatrix *matrix=nullptr) |
| Make a sweep gradient. | |
| static std::shared_ptr< DlColorSource > | MakeRuntimeEffect (sk_sp< DlRuntimeEffect > runtime_effect, std::vector< std::shared_ptr< DlColorSource > > samplers, std::shared_ptr< std::vector< uint8_t > > uniform_data) |
Definition at line 12 of file dl_runtime_effect_color_source.h.
| flutter::DlRuntimeEffectColorSource::DlRuntimeEffectColorSource | ( | sk_sp< DlRuntimeEffect > | runtime_effect, |
| std::vector< std::shared_ptr< DlColorSource > > | samplers, | ||
| std::shared_ptr< std::vector< uint8_t > > | uniform_data | ||
| ) |
Definition at line 9 of file dl_runtime_effect_color_source.cc.
|
inlineoverridevirtual |
Reimplemented from flutter::DlColorSource.
Definition at line 21 of file dl_runtime_effect_color_source.h.
|
overrideprotectedvirtual |
Implements flutter::DlAttribute< DlColorSource, DlColorSourceType >.
Definition at line 32 of file dl_runtime_effect_color_source.cc.
References FML_DCHECK, i, flutter::kRuntimeEffect, and flutter::DlAttribute< D, T >::type().
|
inlineoverridevirtual |
Implements flutter::DlColorSource.
Definition at line 32 of file dl_runtime_effect_color_source.h.
|
overridevirtual |
If the underlying platform data held by this object is held in a way that it can be stored and potentially released from the UI thread, this method returns true.
Implements flutter::DlColorSource.
Definition at line 23 of file dl_runtime_effect_color_source.cc.
|
inline |
Definition at line 34 of file dl_runtime_effect_color_source.h.
Referenced by impeller::Paint::CreateContents(), and flutter::ToSk().
|
inline |
Definition at line 37 of file dl_runtime_effect_color_source.h.
Referenced by impeller::Paint::CreateContents(), and flutter::ToSk().
|
overridevirtual |
Implements flutter::DlAttribute< DlColorSource, DlColorSourceType >.
Definition at line 17 of file dl_runtime_effect_color_source.cc.
|
inlineoverridevirtual |
Implements flutter::DlAttribute< DlColorSource, DlColorSourceType >.
Definition at line 30 of file dl_runtime_effect_color_source.h.
|
inlineoverridevirtual |
Implements flutter::DlAttribute< DlColorSource, DlColorSourceType >.
Definition at line 27 of file dl_runtime_effect_color_source.h.
References flutter::kRuntimeEffect.
|
inline |
Definition at line 40 of file dl_runtime_effect_color_source.h.
Referenced by impeller::Paint::CreateContents(), and flutter::ToSk().