This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 1 file changed +6
-0
lines changed 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ void CanvasGradient::initRadial(double center_x,
74
74
sk_matrix = ToSkMatrix (matrix4);
75
75
}
76
76
77
+ // TODO(https://github.com/flutter/flutter/issues/154650): Eliminate this
78
+ // heap allocation.
77
79
std::vector<DlColor> dl_colors;
78
80
dl_colors.reserve (num_colors);
79
81
for (int i = 0 ; i < colors.num_elements (); i += 4 ) {
@@ -113,6 +115,8 @@ void CanvasGradient::initSweep(double center_x,
113
115
sk_matrix = ToSkMatrix (matrix4);
114
116
}
115
117
118
+ // TODO(https://github.com/flutter/flutter/issues/154650): Eliminate this
119
+ // heap allocation.
116
120
std::vector<DlColor> dl_colors;
117
121
dl_colors.reserve (num_colors);
118
122
for (int i = 0 ; i < colors.num_elements (); i += 4 ) {
@@ -156,6 +160,8 @@ void CanvasGradient::initTwoPointConical(double start_x,
156
160
sk_matrix = ToSkMatrix (matrix4);
157
161
}
158
162
163
+ // TODO(https://github.com/flutter/flutter/issues/154650): Eliminate this
164
+ // heap allocation.
159
165
std::vector<DlColor> dl_colors;
160
166
dl_colors.reserve (num_colors);
161
167
for (int i = 0 ; i < colors.num_elements (); i += 4 ) {
You can’t perform that action at this time.
0 commit comments