#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 226 of file dl_color_source.h.
◆ DlImageColorSource()
Definition at line 229 of file dl_color_source.h.
235 image_(std::move(
image)),
DlImageSampling sampling() const
DlTileMode vertical_tile_mode() const
DlTileMode horizontal_tile_mode() const
sk_sp< const DlImage > image() const
const SkMatrix & matrix() const
DlMatrixColorSourceBase(const SkMatrix *matrix)
◆ asImage()
◆ equals_()
bool flutter::DlImageColorSource::equals_ |
( |
DlColorSource const & |
other | ) |
const |
|
inlineoverrideprotectedvirtual |
Implements flutter::DlAttribute< DlColorSource, DlColorSourceType >.
Definition at line 267 of file dl_color_source.h.
267 {
270 return (image_->Equals(that->image_) &&
matrix() == that->matrix() &&
271 horizontal_tile_mode_ == that->horizontal_tile_mode_ &&
272 vertical_tile_mode_ == that->vertical_tile_mode_ &&
273 sampling_ == that->sampling_);
274 }
DlImageColorSource(sk_sp< const DlImage > image, DlTileMode horizontal_tile_mode, DlTileMode vertical_tile_mode, DlImageSampling sampling=DlImageSampling::kLinear, const SkMatrix *matrix=nullptr)
#define FML_DCHECK(condition)
◆ horizontal_tile_mode()
DlTileMode flutter::DlImageColorSource::horizontal_tile_mode |
( |
| ) |
const |
|
inline |
◆ image()
sk_sp< const DlImage > flutter::DlImageColorSource::image |
( |
| ) |
const |
|
inline |
◆ is_opaque()
bool flutter::DlImageColorSource::is_opaque |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isUIThreadSafe()
bool flutter::DlImageColorSource::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 240 of file dl_color_source.h.
240 {
241 return image_ ? image_->isUIThreadSafe() : true;
242 }
◆ sampling()
◆ shared()
std::shared_ptr< DlColorSource > flutter::DlImageColorSource::shared |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ size()
size_t flutter::DlImageColorSource::size |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ type()
◆ vertical_tile_mode()
DlTileMode flutter::DlImageColorSource::vertical_tile_mode |
( |
| ) |
const |
|
inline |
◆ with_sampling()
Definition at line 250 of file dl_color_source.h.
250 {
251 return std::make_shared<DlImageColorSource>(image_, horizontal_tile_mode_,
254 }
const SkMatrix * matrix_ptr() const
The documentation for this class was generated from the following file: