Definition at line 91 of file display_list.cc.
◆ VectorCuller()
flutter::VectorCuller::VectorCuller |
( |
const DlRTree * |
rtree, |
|
|
const std::vector< int > & |
rect_indices |
|
) |
| |
|
inline |
Definition at line 93 of file display_list.cc.
94 : rtree_(rtree), cur_(rect_indices.begin()), end_(rect_indices.end()) {}
◆ ~VectorCuller()
flutter::VectorCuller::~VectorCuller |
( |
| ) |
|
|
default |
◆ init()
Implements flutter::Culler.
Definition at line 98 of file display_list.cc.
98 {
99 if (cur_ < end_) {
100 context.next_render_index = rtree_->
id(*cur_++);
101 return true;
102 } else {
103
104
105
106
107
108
109
110
111
112
113 context.next_render_index = std::numeric_limits<int>::max();
114 return false;
115 }
116 }
int id(int result_index) const
◆ update()
Implements flutter::Culler.
Definition at line 117 of file display_list.cc.
117 {
118 if (++context.cur_index > context.next_render_index) {
119 while (cur_ < end_) {
120 context.next_render_index = rtree_->
id(*cur_++);
121 if (context.next_render_index >= context.cur_index) {
122
123
124
125
126
127
128
129
130
131 return;
132 }
133 }
134 context.next_render_index = std::numeric_limits<int>::max();
135 }
136 }
The documentation for this class was generated from the following file: