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

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

Merge "Switch to Skia's new representation of linear gamma"

parents 355f1c0b a9593496
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2525,9 +2525,7 @@ public abstract class ColorSpace {
                    gamma == 1.0 ? DoubleUnaryOperator.identity() :
                            x -> Math.pow(x < 0.0 ? 0.0 : x, gamma),
                    min, max, id);
            mTransferParameters = gamma == 1.0 ?
                    new TransferParameters(0.0, 0.0, 1.0, 1.0 + Math.ulp(1.0f), gamma) :
                    new TransferParameters(1.0, 0.0, 0.0, 0.0, gamma);
            mTransferParameters = new TransferParameters(1.0, 0.0, 0.0, 0.0, gamma);
        }

        /**