#include <dl_matrix_color_source_base.h>
Public Member Functions | |
| const DlMatrix & | matrix () const |
| const DlMatrix * | matrix_ptr () const |
Public Member Functions inherited from flutter::DlColorSource | |
| virtual bool | is_opaque () const =0 |
| 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 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 |
| 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 | |
| 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 14 of file dl_matrix_color_source_base.h.
|
inlineexplicitprotected |
Definition at line 22 of file dl_matrix_color_source_base.h.
|
inline |
Definition at line 16 of file dl_matrix_color_source_base.h.
Referenced by flutter::DlGradientColorSourceBase::base_equals_(), impeller::Paint::CreateContents(), impeller::Canvas::DrawVertices(), flutter::DlImageColorSource::equals_(), flutter::testing::TEST(), and flutter::testing::TEST().
|
inline |
Definition at line 17 of file dl_matrix_color_source_base.h.
References impeller::Matrix::IsIdentity().
Referenced by flutter::testing::DisplayListStreamDispatcher::setColorSource(), flutter::ToSk(), and flutter::DlImageColorSource::WithSampling().