Skip to content

Commit cbd14ba

Browse files
bderodnfield
authored andcommitted
Premultiply gradient colors (flutter#106)
1 parent 6f02b89 commit cbd14ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

impeller/entity/contents/linear_gradient_contents.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ bool LinearGradientContents::Render(const ContentContext& renderer,
6161
FS::GradientInfo gradient_info;
6262
gradient_info.start_point = start_point_;
6363
gradient_info.end_point = end_point_;
64-
gradient_info.start_color = colors_[0];
65-
gradient_info.end_color = colors_[1];
64+
gradient_info.start_color = colors_[0].Premultiply();
65+
gradient_info.end_color = colors_[1].Premultiply();
6666

6767
Command cmd;
6868
cmd.label = "LinearGradientFill";

0 commit comments

Comments
 (0)