#include <dl_gradient_color_source_base.h>
Public Member Functions | |
| bool | is_opaque () const override |
| bool | isGradient () const override |
| If the underlying platform data represents a gradient. | |
| DlTileMode | tile_mode () const |
| int | stop_count () const |
| const DlColor * | colors () const |
| const float * | stops () const |
Public Member Functions inherited from flutter::DlMatrixColorSourceBase | |
| const DlMatrix & | matrix () const |
| const DlMatrix * | matrix_ptr () const |
Public Member Functions inherited from flutter::DlColorSource | |
| virtual bool | isUIThreadSafe () const =0 |
| 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. | |
| 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 |
| virtual const DlRuntimeEffectColorSource * | asRuntimeEffect () const |
Public Member Functions inherited from flutter::DlAttribute< DlColorSource, DlColorSourceType > | |
| virtual DlColorSourceType | type () const=0 |
| virtual size_t | size () const=0 |
| virtual std::shared_ptr< DlColorSource > | shared () const=0 |
| bool | operator== (DlColorSource const &other) const |
| bool | operator!= (DlColorSource const &other) const |
| virtual | ~DlAttribute ()=default |
Protected Member Functions | |
| DlGradientColorSourceBase (uint32_t stop_count, DlTileMode tile_mode, const DlMatrix *matrix=nullptr) | |
| size_t | vector_sizes () const |
| virtual const void * | pod () const =0 |
| bool | base_equals_ (DlGradientColorSourceBase const *other_base) const |
| void | store_color_stops (void *pod, const DlColor *color_data, const float *stop_data) |
| void | store_color_stops (void *pod, const DlScalar *color_data_argb, const float *stop_data) |
Protected Member Functions inherited from flutter::DlMatrixColorSourceBase | |
| DlMatrixColorSourceBase (const DlMatrix *matrix) | |
Protected Member Functions inherited from flutter::DlColorSource | |
| DlColorSource ()=default | |
Protected Member Functions inherited from flutter::DlAttribute< DlColorSource, DlColorSourceType > | |
| virtual bool | equals_ (DlColorSource const &other) const=0 |
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 13 of file dl_gradient_color_source_base.h.
|
protected |
Definition at line 214 of file dl_color_source.cc.
|
protected |
Definition at line 234 of file dl_color_source.cc.
References colors(), flutter::DlMatrixColorSourceBase::matrix(), and stops().
|
inline |
Definition at line 21 of file dl_gradient_color_source_base.h.
References pod().
Referenced by base_equals_(), impeller::Paint::ConvertStops(), is_opaque(), flutter::testing::DisplayListStreamDispatcher::setColorSource(), and stops().
|
overridevirtual |
Implements flutter::DlColorSource.
Definition at line 221 of file dl_color_source.cc.
References colors(), i, and flutter::kDecal.
|
inlineoverridevirtual |
If the underlying platform data represents a gradient.
TODO(matanl): Remove this flag when the Skia backend is
removed, https://github.com/flutter/flutter/issues/112498.
Reimplemented from flutter::DlColorSource.
Definition at line 17 of file dl_gradient_color_source_base.h.
|
protectedpure virtual |
Implemented in flutter::DlConicalGradientColorSource, flutter::DlLinearGradientColorSource, flutter::DlRadialGradientColorSource, and flutter::DlSweepGradientColorSource.
Referenced by colors(), store_color_stops(), and store_color_stops().
|
inline |
Definition at line 20 of file dl_gradient_color_source_base.h.
Referenced by impeller::Paint::ConvertStops(), flutter::testing::DisplayListStreamDispatcher::setColorSource(), stops(), and flutter::ToSk().
|
inline |
Definition at line 24 of file dl_gradient_color_source_base.h.
References colors(), and stop_count().
Referenced by base_equals_(), impeller::Paint::ConvertStops(), flutter::testing::DisplayListStreamDispatcher::setColorSource(), and flutter::ToSk().
|
protected |
Definition at line 299 of file dl_color_source.cc.
References pod().
|
protected |
Definition at line 305 of file dl_color_source.cc.
References pod().
|
inline |
Definition at line 19 of file dl_gradient_color_source_base.h.
Referenced by impeller::Paint::CreateContents(), flutter::testing::DisplayListStreamDispatcher::setColorSource(), and flutter::ToSk().
|
inlineprotected |
Definition at line 33 of file dl_gradient_color_source_base.h.
Referenced by flutter::DlConicalGradientColorSource::size(), flutter::DlLinearGradientColorSource::size(), flutter::DlRadialGradientColorSource::size(), and flutter::DlSweepGradientColorSource::size().