#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 491 of file dl_color_source.h.
◆ asConicalGradient()
◆ end_center()
SkPoint flutter::DlConicalGradientColorSource::end_center |
( |
| ) |
const |
|
inline |
◆ end_radius()
SkScalar flutter::DlConicalGradientColorSource::end_radius |
( |
| ) |
const |
|
inline |
◆ equals_()
bool flutter::DlConicalGradientColorSource::equals_ |
( |
DlColorSource const & |
other | ) |
const |
|
inlineoverrideprotectedvirtual |
Implements flutter::DlAttribute< DlColorSource, DlColorSourceType >.
Definition at line 518 of file dl_color_source.h.
518 {
520 auto that = static_cast<DlConicalGradientColorSource const*>(&other);
521 return (start_center_ == that->start_center_ &&
522 start_radius_ == that->start_radius_ &&
523 end_center_ == that->end_center_ &&
524 end_radius_ == that->end_radius_ &&
base_equals_(that));
525 }
bool base_equals_(DlGradientColorSourceBase const *other_base) const
#define FML_DCHECK(condition)
◆ isUIThreadSafe()
bool flutter::DlConicalGradientColorSource::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 497 of file dl_color_source.h.
◆ pod()
virtual const void * flutter::DlConicalGradientColorSource::pod |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ shared()
std::shared_ptr< DlColorSource > flutter::DlConicalGradientColorSource::shared |
( |
| ) |
const |
|
inlineoverridevirtual |
Implements flutter::DlAttribute< DlColorSource, DlColorSourceType >.
Definition at line 499 of file dl_color_source.h.
499 {
500 return MakeConical(start_center_, start_radius_, end_center_, end_radius_,
503 }
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)
DlTileMode tile_mode() const
const DlColor * colors() const
const float * stops() const
const SkMatrix * matrix_ptr() const
◆ size()
size_t flutter::DlConicalGradientColorSource::size |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ start_center()
SkPoint flutter::DlConicalGradientColorSource::start_center |
( |
| ) |
const |
|
inline |
◆ start_radius()
SkScalar flutter::DlConicalGradientColorSource::start_radius |
( |
| ) |
const |
|
inline |
◆ type()
◆ DisplayListBuilder
◆ DlColorSource
The documentation for this class was generated from the following file: