Skip to content

Commit 75a9853

Browse files
flardnfield
authored andcommitted
update the linear gradient code to the new accessor names (flutter#80)
1 parent f5db75a commit 75a9853

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

impeller/display_list/display_list_dispatcher.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ void DisplayListDispatcher::setColorSource(const flutter::DlColorSource* source)
107107
const flutter::DlLinearGradientColorSource* linear = source->asLinearGradient();
108108
FML_DCHECK(linear);
109109
auto contents = std::make_shared<LinearGradientContents>();
110-
contents->SetEndPoints(ToPoint(linear->p0()),
111-
ToPoint(linear->p1()));
110+
contents->SetEndPoints(ToPoint(linear->start_point()),
111+
ToPoint(linear->end_point()));
112112
std::vector<Color> colors;
113113
for (auto i = 0; i < linear->stop_count(); i++) {
114114
colors.emplace_back(ToColor(linear->colors()[i]));

0 commit comments

Comments
 (0)