Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a18ca3e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "don't use legacy postTranslate255"

parents eefe507b c9b5a972
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ private:
                    // Simple scale/translate case where R, G, and B are all treated equivalently
                    SkColorMatrix cm;
                    cm.setScale(1.1f, 1.1f, 1.1f, 0.5f);
                    cm.postTranslate255(5.0f, 5.0f, 5.0f, 10.0f);
                    cm.postTranslate(5.0f/255, 5.0f/255, 5.0f/255, 10.0f/255);

                    paint.setColorFilter(SkColorFilters::Matrix(cm));