#include <color_source.h>
Public Types | |
| enum | Type { Type::kColor, Type::kImage, Type::kLinearGradient, Type::kRadialGradient, Type::kConicalGradient, Type::kSweepGradient, Type::kRuntimeEffect, Type::kScene } |
Public Member Functions | |
| ColorSource () noexcept | |
| ~ColorSource () | |
| Type | GetType () const |
| std::shared_ptr< ColorSourceContents > | GetContents (const Paint &paint) const |
| const ColorSourceData & | GetData () const |
Static Public Member Functions | |
| static ColorSource | MakeColor () |
| static ColorSource | MakeLinearGradient (Point start_point, Point end_point, std::vector< Color > colors, std::vector< Scalar > stops, Entity::TileMode tile_mode, Matrix effect_transform) |
| static ColorSource | MakeConicalGradient (Point center, Scalar radius, std::vector< Color > colors, std::vector< Scalar > stops, Point focus_center, Scalar focus_radius, Entity::TileMode tile_mode, Matrix effect_transform) |
| static ColorSource | MakeRadialGradient (Point center, Scalar radius, std::vector< Color > colors, std::vector< Scalar > stops, Entity::TileMode tile_mode, Matrix effect_transform) |
| static ColorSource | MakeSweepGradient (Point center, Degrees start_angle, Degrees end_angle, std::vector< Color > colors, std::vector< Scalar > stops, Entity::TileMode tile_mode, Matrix effect_transform) |
| static ColorSource | MakeImage (std::shared_ptr< Texture > texture, Entity::TileMode x_tile_mode, Entity::TileMode y_tile_mode, SamplerDescriptor sampler_descriptor, Matrix effect_transform) |
| static ColorSource | MakeRuntimeEffect (std::shared_ptr< RuntimeStage > runtime_stage, std::shared_ptr< std::vector< uint8_t >> uniform_data, std::vector< RuntimeEffectContents::TextureInput > texture_inputs) |
Definition at line 99 of file color_source.h.
|
strong |
| Enumerator | |
|---|---|
| kColor | |
| kImage | |
| kLinearGradient | |
| kRadialGradient | |
| kConicalGradient | |
| kSweepGradient | |
| kRuntimeEffect | |
| kScene | |
Definition at line 101 of file color_source.h.
|
noexcept |
Definition at line 158 of file color_source.cc.
|
default |
| std::shared_ptr< ColorSourceContents > impeller::ColorSource::GetContents | ( | const Paint & | paint | ) | const |
Definition at line 264 of file color_source.cc.
References paint.
Referenced by impeller::Paint::CreateContentsForGeometry().
| const ColorSourceData & impeller::ColorSource::GetData | ( | ) | const |
Definition at line 269 of file color_source.cc.
| ColorSource::Type impeller::ColorSource::GetType | ( | ) | const |
Definition at line 260 of file color_source.cc.
|
static |
Definition at line 162 of file color_source.cc.
Referenced by impeller::DlDispatcherBase::setColorSource().
|
static |
Definition at line 180 of file color_source.cc.
References kConicalGradient.
Referenced by impeller::DlDispatcherBase::setColorSource(), and impeller::testing::TEST_F().
|
static |
Definition at line 225 of file color_source.cc.
References kImage.
Referenced by impeller::DlDispatcherBase::setColorSource(), and impeller::testing::TEST_P().
|
static |
Definition at line 166 of file color_source.cc.
References kLinearGradient.
Referenced by impeller::DlDispatcherBase::setColorSource(), and impeller::testing::TEST_P().
|
static |
Definition at line 196 of file color_source.cc.
References kRadialGradient.
Referenced by impeller::DlDispatcherBase::setColorSource(), and impeller::testing::TEST_P().
|
static |
Definition at line 238 of file color_source.cc.
References kRuntimeEffect.
Referenced by impeller::DlDispatcherBase::setColorSource(), and impeller::testing::TEST_P().
|
static |
Definition at line 210 of file color_source.cc.
References kSweepGradient.
Referenced by impeller::DlDispatcherBase::setColorSource(), and impeller::testing::TEST_P().