#include <dl_accumulation_rect.h>
Definition at line 25 of file dl_accumulation_rect.h.
◆ AccumulationRect()
flutter::AccumulationRect::AccumulationRect |
( |
| ) |
|
|
inline |
◆ accumulate() [1/6]
Definition at line 53 of file dl_accumulation_rect.cc.
53 {
54 if (ar.is_empty()) {
55 return;
56 }
57 if (ar.min_x_ < max_x_ && ar.max_x_ > min_x_ &&
58 ar.min_y_ < max_y_ && ar.max_y_ > min_y_) {
60 }
61 if (min_x_ > ar.min_x_) {
62 min_x_ = ar.min_x_;
63 }
64 if (min_y_ > ar.min_y_) {
65 min_y_ = ar.min_y_;
66 }
67 if (max_x_ < ar.max_x_) {
68 max_x_ = ar.max_x_;
69 }
70 if (max_y_ < ar.max_y_) {
71 max_y_ = ar.max_y_;
72 }
73}
void record_overlapping_bounds()
◆ accumulate() [2/6]
void flutter::AccumulationRect::accumulate |
( |
DlPoint |
p | ) |
|
|
inline |
◆ accumulate() [3/6]
void flutter::AccumulationRect::accumulate |
( |
DlRect |
r | ) |
|
|
inline |
◆ accumulate() [4/6]
void flutter::AccumulationRect::accumulate |
( |
SkPoint |
p | ) |
|
|
inline |
◆ accumulate() [5/6]
void flutter::AccumulationRect::accumulate |
( |
SkRect |
r | ) |
|
Definition at line 31 of file dl_accumulation_rect.cc.
31 {
33 return;
34 }
38 }
39 if (min_x_ > r.
fLeft) {
41 }
42 if (min_y_ > r.
fTop) {
44 }
47 }
50 }
51}
SkScalar fBottom
larger y-axis bounds
SkScalar fLeft
smaller x-axis bounds
SkScalar fRight
larger x-axis bounds
SkScalar fTop
smaller y-axis bounds
◆ accumulate() [6/6]
Definition at line 9 of file dl_accumulation_rect.cc.
9 {
11 return;
12 }
13 if (
x >= min_x_ && x < max_x_ && y >= min_y_ &&
y < max_y_) {
15 return;
16 }
19 }
22 }
25 }
28 }
29}
SINT bool isfinite(const Vec< N, T > &v)
◆ bounds()
SkRect flutter::AccumulationRect::bounds |
( |
| ) |
const |
Definition at line 75 of file dl_accumulation_rect.cc.
75 {
76 return (max_x_ >= min_x_ && max_y_ >= min_y_)
79}
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
◆ is_empty()
bool flutter::AccumulationRect::is_empty |
( |
| ) |
const |
|
inline |
◆ is_not_empty()
bool flutter::AccumulationRect::is_not_empty |
( |
| ) |
const |
|
inline |
◆ overlap_detected()
bool flutter::AccumulationRect::overlap_detected |
( |
| ) |
const |
|
inline |
◆ record_overlapping_bounds()
void flutter::AccumulationRect::record_overlapping_bounds |
( |
| ) |
|
|
inline |
◆ reset()
void flutter::AccumulationRect::reset |
( |
| ) |
|
Definition at line 81 of file dl_accumulation_rect.cc.
81 {
82 min_x_ = std::numeric_limits<SkScalar>::infinity();
83 min_y_ = std::numeric_limits<SkScalar>::infinity();
84 max_x_ = -std::numeric_limits<SkScalar>::infinity();
85 max_y_ = -std::numeric_limits<SkScalar>::infinity();
86 overlap_detected_ = false;
87}
The documentation for this class was generated from the following files: