5#ifndef FLUTTER_DISPLAY_LIST_EFFECTS_COLOR_SOURCES_DL_IMAGE_COLOR_SOURCE_H_
6#define FLUTTER_DISPLAY_LIST_EFFECTS_COLOR_SOURCES_DL_IMAGE_COLOR_SOURCE_H_
21 return image_ ? image_->isUIThreadSafe() :
true;
26 std::shared_ptr<DlColorSource>
shared()
const override {
33 size_t size()
const override {
return sizeof(*this); }
35 bool is_opaque()
const override {
return image_->isOpaque(); }
37 sk_sp<const DlImage>
image()
const {
return image_; }
46 sk_sp<const DlImage> image_;
bool equals_(DlColorSource const &other) const override
std::shared_ptr< DlColorSource > shared() 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 potent...
DlImageSampling sampling() const
size_t size() const override
DlColorSourceType type() const override
std::shared_ptr< DlColorSource > WithSampling(DlImageSampling sampling) const
bool is_opaque() const override
DlTileMode vertical_tile_mode() const
const DlImageColorSource * asImage() const override
DlTileMode horizontal_tile_mode() const
sk_sp< const DlImage > image() const
const DlMatrix & matrix() const
#define FML_DISALLOW_COPY_ASSIGN_AND_MOVE(TypeName)
A 4x4 matrix using column-major storage.