Skip to content

Commit

Permalink
update the linear gradient code to the new accessor names (flutter#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
flar authored and dnfield committed Apr 27, 2022
1 parent f5db75a commit 75a9853
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions impeller/display_list/display_list_dispatcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ void DisplayListDispatcher::setColorSource(const flutter::DlColorSource* source)
const flutter::DlLinearGradientColorSource* linear = source->asLinearGradient();
FML_DCHECK(linear);
auto contents = std::make_shared<LinearGradientContents>();
contents->SetEndPoints(ToPoint(linear->p0()),
ToPoint(linear->p1()));
contents->SetEndPoints(ToPoint(linear->start_point()),
ToPoint(linear->end_point()));
std::vector<Color> colors;
for (auto i = 0; i < linear->stop_count(); i++) {
colors.emplace_back(ToColor(linear->colors()[i]));
Expand Down

0 comments on commit 75a9853

Please sign in to comment.