#include <dl_image_filter.h>
|
enum class | MatrixCapability { kTranslate
, kScaleTranslate
, kComplex
} |
|
static SkVector | map_vectors_affine (const SkMatrix &ctm, SkScalar x, SkScalar y) |
|
static SkIRect * | inset_device_bounds (const SkIRect &input_bounds, SkScalar radius_x, SkScalar radius_y, const SkMatrix &ctm, SkIRect &output_bounds) |
|
static SkIRect * | outset_device_bounds (const SkIRect &input_bounds, SkScalar radius_x, SkScalar radius_y, const SkMatrix &ctm, SkIRect &output_bounds) |
|
Definition at line 504 of file dl_image_filter.h.
◆ DlComposeImageFilter() [1/5]
flutter::DlComposeImageFilter::DlComposeImageFilter |
( |
std::shared_ptr< const DlImageFilter > |
outer, |
|
|
std::shared_ptr< const DlImageFilter > |
inner |
|
) |
| |
|
inline |
Definition at line 506 of file dl_image_filter.h.
508 : outer_(std::move(
outer)), inner_(std::move(
inner)) {}
std::shared_ptr< const DlImageFilter > outer() const
std::shared_ptr< const DlImageFilter > inner() const
◆ DlComposeImageFilter() [2/5]
◆ DlComposeImageFilter() [3/5]
Definition at line 511 of file dl_image_filter.h.
DlComposeImageFilter(std::shared_ptr< const DlImageFilter > outer, std::shared_ptr< const DlImageFilter > inner)
◆ DlComposeImageFilter() [4/5]
◆ DlComposeImageFilter() [5/5]
◆ asCompose()
◆ equals_()
bool flutter::DlComposeImageFilter::equals_ |
( |
const DlImageFilter & |
other | ) |
const |
|
inlineoverrideprotectedvirtual |
◆ get_input_device_bounds()
SkIRect * flutter::DlComposeImageFilter::get_input_device_bounds |
( |
const SkIRect & |
output_bounds, |
|
|
const SkMatrix & |
ctm, |
|
|
SkIRect & |
input_bounds |
|
) |
| const |
|
overridevirtual |
Implements flutter::DlImageFilter.
Definition at line 77 of file dl_image_filter.cc.
80 {
81 SkIRect cur_bounds = output_bounds;
83
84 input_bounds = output_bounds;
85 if (outer_) {
86 if (!outer_->get_input_device_bounds(cur_bounds, ctm, input_bounds)) {
87 ret = nullptr;
88 }
89 cur_bounds = input_bounds;
90 }
91 if (inner_) {
92 if (!inner_->get_input_device_bounds(cur_bounds, ctm, input_bounds)) {
93 ret = nullptr;
94 }
95 }
96 return ret;
97}
◆ inner()
std::shared_ptr< const DlImageFilter > flutter::DlComposeImageFilter::inner |
( |
| ) |
const |
|
inline |
◆ Make()
◆ map_device_bounds()
Implements flutter::DlImageFilter.
Definition at line 56 of file dl_image_filter.cc.
58 {
59 SkIRect cur_bounds = input_bounds;
61
62 output_bounds = input_bounds;
63 if (inner_) {
64 if (!inner_->map_device_bounds(cur_bounds, ctm, output_bounds)) {
65 ret = nullptr;
66 }
67 cur_bounds = output_bounds;
68 }
69 if (outer_) {
70 if (!outer_->map_device_bounds(cur_bounds, ctm, output_bounds)) {
71 ret = nullptr;
72 }
73 }
74 return ret;
75}
◆ map_local_bounds()
SkRect * flutter::DlComposeImageFilter::map_local_bounds |
( |
const SkRect & |
input_bounds, |
|
|
SkRect & |
output_bounds |
|
) |
| const |
|
overridevirtual |
Implements flutter::DlImageFilter.
Definition at line 36 of file dl_image_filter.cc.
37 {
38 SkRect cur_bounds = input_bounds;
39 SkRect* ret = &output_bounds;
40
41 output_bounds = input_bounds;
42 if (inner_) {
43 if (!inner_->map_local_bounds(cur_bounds, output_bounds)) {
44 ret = nullptr;
45 }
46 cur_bounds = output_bounds;
47 }
48 if (outer_) {
49 if (!outer_->map_local_bounds(cur_bounds, output_bounds)) {
50 ret = nullptr;
51 }
52 }
53 return ret;
54}
◆ matrix_capability()
◆ modifies_transparent_black()
bool flutter::DlComposeImageFilter::modifies_transparent_black |
( |
| ) |
const |
|
inlineoverridevirtual |
Implements flutter::DlImageFilter.
Definition at line 544 of file dl_image_filter.h.
544 {
545 if (inner_ && inner_->modifies_transparent_black()) {
546 return true;
547 }
548 if (outer_ && outer_->modifies_transparent_black()) {
549 return true;
550 }
551 return false;
552 }
◆ outer()
std::shared_ptr< const DlImageFilter > flutter::DlComposeImageFilter::outer |
( |
| ) |
const |
|
inline |
◆ shared()
std::shared_ptr< DlImageFilter > flutter::DlComposeImageFilter::shared |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ size()
size_t flutter::DlComposeImageFilter::size |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ type()
The documentation for this class was generated from the following files: