#include <image_shader.h>
Definition at line 19 of file image_shader.h.
◆ ~ImageShader()
flutter::ImageShader::~ImageShader |
( |
| ) |
|
|
overridedefault |
◆ Create()
void flutter::ImageShader::Create |
( |
Dart_Handle |
wrapper | ) |
|
|
static |
Definition at line 21 of file image_shader.cc.
21 {
22 auto res = fml::MakeRefCounted<ImageShader>();
23 res->AssociateWithDartWrapper(wrapper);
24}
◆ dispose()
void flutter::ImageShader::dispose |
( |
| ) |
|
Definition at line 65 of file image_shader.cc.
65 {
66 cached_shader_.reset();
67 image_.reset();
69}
◆ height()
int flutter::ImageShader::height |
( |
| ) |
|
◆ initWithImage()
Definition at line 26 of file image_shader.cc.
30 {
31
32 if (!
image || !
image->image()->isUIThreadSafe()) {
33 return ToDart(
"ImageShader constructor called with non-genuine Image.");
34 }
35
36 image_ =
image->image();
37 tonic::Float64List matrix4(matrix_handle);
39 matrix4.Release();
40 sampling_is_locked_ = filter_quality_index >= 0;
44 cached_shader_ = std::make_shared<DlImageColorSource>(
48}
static DlImageSampling SamplingFromIndex(int filterQualityIndex)
DART_EXPORT Dart_Handle Dart_Null(void)
#define FML_DCHECK(condition)
sk_sp< const SkImage > image
SkSamplingOptions sampling
constexpr SkMatrix ToSkMatrix(const DlMatrix &matrix)
Dart_Handle ToDart(const T &object)
◆ shader()
◆ width()
int flutter::ImageShader::width |
( |
| ) |
|
The documentation for this class was generated from the following files: