File tree Expand file tree Collapse file tree
libs/renderengine/skia/filters Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424#include < ui/ColorSpace.h>
2525
2626#include " include/core/SkColorSpace.h"
27- #include " src/core/SkColorFilterPriv.h"
2827
2928using aidl::android::hardware::graphics::composer3::LutProperties;
3029
@@ -116,7 +115,7 @@ static const SkString kShader = SkString(R"(
116115 linear = mix(c0, c1, linear.b);
117116 }
118117 }
119- return float4(linear, rgba.a);
118+ return float4(fromLinearSrgb( linear) , rgba.a);
120119 })" );
121120
122121// same as shader::toColorSpace function
@@ -289,9 +288,7 @@ sk_sp<SkShader> LutShader::lutShader(sk_sp<SkShader>& input,
289288 lutProperties[i].samplingKey , srcDataspace);
290289 }
291290
292- auto colorXformLutToDst =
293- SkColorFilterPriv::MakeColorSpaceXform (lutMathColorSpace, outColorSpace);
294- input = input->makeWithColorFilter (colorXformLutToDst);
291+ input = input->makeWithWorkingColorSpace (outColorSpace);
295292 }
296293 return input;
297294}
You can’t perform that action at this time.
0 commit comments