From b132e64e72177134cecc483f58f3c45c5dcb7ebc Mon Sep 17 00:00:00 2001 From: Jim Graham Date: Tue, 15 Mar 2022 13:55:30 -0700 Subject: [PATCH] update the linear gradient code to the new accessor names (flutter/engine#80) --- .../flutter/impeller/display_list/display_list_dispatcher.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/impeller/display_list/display_list_dispatcher.cc b/engine/src/flutter/impeller/display_list/display_list_dispatcher.cc index 3ae258e025..186fefdbbb 100644 --- a/engine/src/flutter/impeller/display_list/display_list_dispatcher.cc +++ b/engine/src/flutter/impeller/display_list/display_list_dispatcher.cc @@ -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(); - contents->SetEndPoints(ToPoint(linear->p0()), - ToPoint(linear->p1())); + contents->SetEndPoints(ToPoint(linear->start_point()), + ToPoint(linear->end_point())); std::vector colors; for (auto i = 0; i < linear->stop_count(); i++) { colors.emplace_back(ToColor(linear->colors()[i]));