#include <dl_color_source.h>
|
static std::shared_ptr< DlLinearGradientColorSource > | MakeLinear (const SkPoint start_point, const SkPoint end_point, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const SkMatrix *matrix=nullptr) |
|
static std::shared_ptr< DlRadialGradientColorSource > | MakeRadial (SkPoint center, SkScalar radius, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const SkMatrix *matrix=nullptr) |
|
static std::shared_ptr< DlConicalGradientColorSource > | MakeConical (SkPoint start_center, SkScalar start_radius, SkPoint end_center, SkScalar end_radius, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const SkMatrix *matrix=nullptr) |
|
static std::shared_ptr< DlSweepGradientColorSource > | MakeSweep (SkPoint center, SkScalar start, SkScalar end, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const SkMatrix *matrix=nullptr) |
|
static std::shared_ptr< DlRuntimeEffectColorSource > | 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 179 of file dl_color_source.h.
◆ DlColorColorSource()
flutter::DlColorColorSource::DlColorColorSource |
( |
DlColor |
color | ) |
|
|
inlineexplicit |
◆ asColor()
◆ color()
DlColor flutter::DlColorColorSource::color |
( |
| ) |
const |
|
inline |
◆ equals_()
bool flutter::DlColorColorSource::equals_ |
( |
DlColorSource const & |
other | ) |
const |
|
inlineoverrideprotectedvirtual |
◆ is_opaque()
bool flutter::DlColorColorSource::is_opaque |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isUIThreadSafe()
bool flutter::DlColorColorSource::isUIThreadSafe |
( |
| ) |
const |
|
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.
- Returns
- True if the class has no GPU related resources or if any that it holds are held in a thread-safe manner.
Implements flutter::DlColorSource.
Definition at line 183 of file dl_color_source.h.
◆ shared()
std::shared_ptr< DlColorSource > flutter::DlColorColorSource::shared |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ size()
size_t flutter::DlColorColorSource::size |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ type()
The documentation for this class was generated from the following file: