#include <dl_image_color_source.h>
Public Member Functions | |
| DlImageColorSource (sk_sp< const DlImage > image, DlTileMode horizontal_tile_mode, DlTileMode vertical_tile_mode, DlImageSampling sampling=DlImageSampling::kLinear, const DlMatrix *matrix=nullptr) | |
| 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 DlImageColorSource * | asImage () const override |
| std::shared_ptr< DlColorSource > | shared () const override |
| std::shared_ptr< DlColorSource > | WithSampling (DlImageSampling sampling) const |
| DlColorSourceType | type () const override |
| size_t | size () const override |
| bool | is_opaque () const override |
| sk_sp< const DlImage > | image () const |
| DlTileMode | horizontal_tile_mode () const |
| DlTileMode | vertical_tile_mode () const |
| DlImageSampling | sampling () 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 | isGradient () const |
| If the underlying platform data represents a gradient. | |
| 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 > | |
| 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::DlMatrixColorSourceBase | |
| DlMatrixColorSourceBase (const DlMatrix *matrix) | |
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_image_color_source.h.
| flutter::DlImageColorSource::DlImageColorSource | ( | sk_sp< const DlImage > | image, |
| DlTileMode | horizontal_tile_mode, | ||
| DlTileMode | vertical_tile_mode, | ||
| DlImageSampling | sampling = DlImageSampling::kLinear, |
||
| const DlMatrix * | matrix = nullptr |
||
| ) |
Definition at line 9 of file dl_image_color_source.cc.
|
inlineoverridevirtual |
Reimplemented from flutter::DlColorSource.
Definition at line 24 of file dl_image_color_source.h.
Referenced by flutter::testing::TEST().
|
overrideprotectedvirtual |
Implements flutter::DlAttribute< DlColorSource, DlColorSourceType >.
Definition at line 27 of file dl_image_color_source.cc.
References FML_DCHECK, flutter::kImage, flutter::DlMatrixColorSourceBase::matrix(), and flutter::DlAttribute< D, T >::type().
|
inline |
Definition at line 38 of file dl_image_color_source.h.
Referenced by impeller::Paint::CreateContents(), impeller::Canvas::DrawVertices(), flutter::testing::DisplayListStreamDispatcher::setColorSource(), flutter::testing::TEST(), flutter::testing::TEST(), and flutter::ToSk().
|
inline |
Definition at line 37 of file dl_image_color_source.h.
Referenced by impeller::Paint::CreateContents(), impeller::Canvas::DrawVertices(), flutter::testing::DisplayListStreamDispatcher::setColorSource(), flutter::testing::TEST(), flutter::testing::TEST(), and flutter::ToSk().
|
inlineoverridevirtual |
Implements flutter::DlColorSource.
Definition at line 35 of file dl_image_color_source.h.
Referenced by flutter::testing::TEST(), and flutter::testing::TEST().
|
inlineoverridevirtual |
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 20 of file dl_image_color_source.h.
|
inline |
Definition at line 40 of file dl_image_color_source.h.
Referenced by impeller::Paint::CreateContents(), impeller::Canvas::DrawVertices(), flutter::testing::DisplayListStreamDispatcher::setColorSource(), flutter::ImageShader::shader(), flutter::testing::TEST(), flutter::testing::TEST(), flutter::ToSk(), and WithSampling().
|
inlineoverridevirtual |
Implements flutter::DlAttribute< DlColorSource, DlColorSourceType >.
Definition at line 26 of file dl_image_color_source.h.
References WithSampling().
Referenced by flutter::testing::TEST().
|
inlineoverridevirtual |
Implements flutter::DlAttribute< DlColorSource, DlColorSourceType >.
Definition at line 33 of file dl_image_color_source.h.
|
inlineoverridevirtual |
Implements flutter::DlAttribute< DlColorSource, DlColorSourceType >.
Definition at line 32 of file dl_image_color_source.h.
References flutter::kImage.
|
inline |
Definition at line 39 of file dl_image_color_source.h.
Referenced by impeller::Paint::CreateContents(), impeller::Canvas::DrawVertices(), flutter::testing::DisplayListStreamDispatcher::setColorSource(), flutter::testing::TEST(), flutter::testing::TEST(), and flutter::ToSk().
| std::shared_ptr< DlColorSource > flutter::DlImageColorSource::WithSampling | ( | DlImageSampling | sampling | ) | const |
Definition at line 20 of file dl_image_color_source.cc.
References flutter::DlMatrixColorSourceBase::matrix_ptr(), and sampling().
Referenced by flutter::ImageShader::shader(), and shared().