Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | Friends | List of all members
flutter::DlRadialGradientColorSource Class Referencefinal

#include <dl_color_source.h>

Inheritance diagram for flutter::DlRadialGradientColorSource:
flutter::DlGradientColorSourceBase flutter::DlMatrixColorSourceBase flutter::DlColorSource flutter::DlAttribute< DlColorSource, DlColorSourceType >

Public Member Functions

const DlRadialGradientColorSourceasRadialGradient () const override
 
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. More...
 
std::shared_ptr< DlColorSourceshared () const override
 
DlColorSourceType type () const override
 
size_t size () const override
 
SkPoint center () const
 
SkScalar radius () const
 
- Public Member Functions inherited from flutter::DlGradientColorSourceBase
bool is_opaque () const override
 
bool isGradient () const override
 If the underlying platform data represents a gradient. More...
 
DlTileMode tile_mode () const
 
int stop_count () const
 
const DlColorcolors () const
 
const float * stops () const
 
- Public Member Functions inherited from flutter::DlMatrixColorSourceBase
const SkMatrixmatrix () const
 
const SkMatrixmatrix_ptr () const
 
- Public Member Functions inherited from flutter::DlColorSource
virtual bool is_opaque () const =0
 
virtual bool isUIThreadSafe () const =0
 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. More...
 
virtual bool isGradient () const
 If the underlying platform data represents a gradient. More...
 
virtual const DlColorColorSourceasColor () const
 
virtual const DlImageColorSourceasImage () const
 
virtual const DlLinearGradientColorSourceasLinearGradient () const
 
virtual const DlRadialGradientColorSourceasRadialGradient () const
 
virtual const DlConicalGradientColorSourceasConicalGradient () const
 
virtual const DlSweepGradientColorSourceasSweepGradient () const
 
virtual const DlRuntimeEffectColorSourceasRuntimeEffect () const
 
- Public Member Functions inherited from flutter::DlAttribute< DlColorSource, DlColorSourceType >
virtual DlColorSourceType type () const=0
 
virtual size_t size () const=0
 
virtual std::shared_ptr< DlColorSourceshared () const=0
 
bool operator== (DlColorSource const &other) const
 
bool operator!= (DlColorSource const &other) const
 
virtual ~DlAttribute ()=default
 

Protected Member Functions

virtual const void * pod () const override
 
bool equals_ (DlColorSource const &other) const override
 
- Protected Member Functions inherited from flutter::DlGradientColorSourceBase
 DlGradientColorSourceBase (uint32_t stop_count, DlTileMode tile_mode, const SkMatrix *matrix=nullptr)
 
size_t vector_sizes () const
 
virtual const void * pod () const =0
 
bool base_equals_ (DlGradientColorSourceBase const *other_base) const
 
void store_color_stops (void *pod, const DlColor *color_data, const float *stop_data)
 
- Protected Member Functions inherited from flutter::DlMatrixColorSourceBase
 DlMatrixColorSourceBase (const SkMatrix *matrix)
 
- Protected Member Functions inherited from flutter::DlColorSource
 DlColorSource ()=default
 
virtual bool equals_ (DlColorSource const &other) const=0
 

Friends

class DlColorSource
 
class DisplayListBuilder
 

Additional Inherited Members

- Static Public Member Functions inherited from flutter::DlColorSource
static std::shared_ptr< DlLinearGradientColorSourceMakeLinear (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< DlRadialGradientColorSourceMakeRadial (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< DlConicalGradientColorSourceMakeConical (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< DlSweepGradientColorSourceMakeSweep (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< DlRuntimeEffectColorSourceMakeRuntimeEffect (sk_sp< DlRuntimeEffect > runtime_effect, std::vector< std::shared_ptr< DlColorSource > > samplers, std::shared_ptr< std::vector< uint8_t > > uniform_data)
 

Detailed Description

Definition at line 427 of file dl_color_source.h.

Member Function Documentation

◆ asRadialGradient()

const DlRadialGradientColorSource * flutter::DlRadialGradientColorSource::asRadialGradient ( ) const
inlineoverridevirtual

Reimplemented from flutter::DlColorSource.

Definition at line 429 of file dl_color_source.h.

429 {
430 return this;
431 }

◆ center()

SkPoint flutter::DlRadialGradientColorSource::center ( ) const
inline

Definition at line 445 of file dl_color_source.h.

445{ return center_; }

◆ equals_()

bool flutter::DlRadialGradientColorSource::equals_ ( DlColorSource const &  other) const
inlineoverrideprotectedvirtual

Implements flutter::DlAttribute< DlColorSource, DlColorSourceType >.

Definition at line 451 of file dl_color_source.h.

451 {
453 auto that = static_cast<DlRadialGradientColorSource const*>(&other);
454 return (center_ == that->center_ && radius_ == that->radius_ &&
455 base_equals_(that));
456 }
bool base_equals_(DlGradientColorSourceBase const *other_base) const
#define FML_DCHECK(condition)
Definition: logging.h:103

◆ isUIThreadSafe()

bool flutter::DlRadialGradientColorSource::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 433 of file dl_color_source.h.

433{ return true; }

◆ pod()

virtual const void * flutter::DlRadialGradientColorSource::pod ( ) const
inlineoverrideprotectedvirtual

Implements flutter::DlGradientColorSourceBase.

Definition at line 449 of file dl_color_source.h.

449{ return this + 1; }

◆ radius()

SkScalar flutter::DlRadialGradientColorSource::radius ( ) const
inline

Definition at line 446 of file dl_color_source.h.

446{ return radius_; }

◆ shared()

std::shared_ptr< DlColorSource > flutter::DlRadialGradientColorSource::shared ( ) const
inlineoverridevirtual

Implements flutter::DlAttribute< DlColorSource, DlColorSourceType >.

Definition at line 435 of file dl_color_source.h.

435 {
436 return MakeRadial(center_, radius_, stop_count(), colors(), stops(),
437 tile_mode(), matrix_ptr());
438 }
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)
const DlColor * colors() const
const SkMatrix * matrix_ptr() const

◆ size()

size_t flutter::DlRadialGradientColorSource::size ( ) const
inlineoverridevirtual

Implements flutter::DlAttribute< DlColorSource, DlColorSourceType >.

Definition at line 443 of file dl_color_source.h.

443{ return sizeof(*this) + vector_sizes(); }

◆ type()

DlColorSourceType flutter::DlRadialGradientColorSource::type ( ) const
inlineoverridevirtual

Friends And Related Function Documentation

◆ DisplayListBuilder

friend class DisplayListBuilder
friend

Definition at line 486 of file dl_color_source.h.

◆ DlColorSource

friend class DlColorSource
friend

Definition at line 485 of file dl_color_source.h.


The documentation for this class was generated from the following file: