Home
last modified time | relevance | path

Searched refs:focalParams (Results 1 – 6 of 6) sorted by relevance

/external/skia/src/gpu/gradients/
DGrTwoPointConicalGradientLayout.cpp40 auto focalParams = _outer.focalParams(); in emitCode() local
41 (void)focalParams; in emitCode()
97 const SkPoint& focalParamsValue = _outer.focalParams(); in onSetData()
262 SkPoint focalParams; // really just a 2D tuple in Make() local
273 focalParams.set(1.0 / focalData.fR1, focalData.fFocalX); in Make()
281 focalParams.set(r0, r0 * r0); in Make()
295 focalParams.set(r0, r0 * r0); in Make()
302 isNativelyFocal, focalParams)); in Make()
DGrTwoPointConicalGradientLayout.fp24 // focalParams is interpreted differently depending on if type is focal or degenerate when
25 // degenerate, focalParams = (r0, r0^2), so strips will use .y and kRadial will use .x when focal,
26 // focalParams = (1/r1, focalX = r0/(r0-r1)) The correct parameters are calculated once in Make for
28 layout(tracked) in uniform half2 focalParams;
47 half r0_2 = focalParams.y;
57 half r0 = focalParams.x;
66 half invR1 = focalParams.x;
67 half fx = focalParams.y;
174 // Type-specific calculations: isRadiusIncreasing, focalParams, and the gradient matrix.
178 SkPoint focalParams; // really just a 2D tuple
[all …]
DGrTwoPointConicalGradientLayout.h29 const SkPoint& focalParams() const { return fFocalParams; } in focalParams() function
40 bool isNativelyFocal, SkPoint focalParams) in GrTwoPointConicalGradientLayout() argument
50 , fFocalParams(focalParams) in GrTwoPointConicalGradientLayout()
/external/skqp/src/gpu/gradients/
DGrTwoPointConicalGradientLayout.fp24 // focalParams is interpreted differently depending on if type is focal or degenerate when
25 // degenerate, focalParams = (r0, r0^2), so strips will use .y and kRadial will use .x when focal,
26 // focalParams = (1/r1, focalX = r0/(r0-r1)) The correct parameters are calculated once in Make for
28 layout(tracked) in uniform half2 focalParams;
47 half r0_2 = focalParams.y;
57 half r0 = focalParams.x;
66 half invR1 = focalParams.x;
67 half fx = focalParams.y;
174 // Type-specific calculations: isRadiusIncreasing, focalParams, and the gradient matrix.
178 SkPoint focalParams; // really just a 2D tuple
[all …]
DGrTwoPointConicalGradientLayout.cpp40 auto focalParams = _outer.focalParams(); in emitCode() local
41 (void)focalParams; in emitCode()
97 const SkPoint& focalParamsValue = _outer.focalParams(); in onSetData()
262 SkPoint focalParams; // really just a 2D tuple in Make() local
273 focalParams.set(1.0 / focalData.fR1, focalData.fFocalX); in Make()
281 focalParams.set(r0, r0 * r0); in Make()
295 focalParams.set(r0, r0 * r0); in Make()
302 isNativelyFocal, focalParams)); in Make()
DGrTwoPointConicalGradientLayout.h29 const SkPoint& focalParams() const { return fFocalParams; } in focalParams() function
40 bool isNativelyFocal, SkPoint focalParams) in GrTwoPointConicalGradientLayout() argument
50 , fFocalParams(focalParams) in GrTwoPointConicalGradientLayout()