Lines Matching refs:HSLShift
183 namespace HSLShift { namespace
244 out[x] = SkPreMultiplyColor(color_utils::HSLShift( in LineProcDefault()
255 DCHECK(hsl_shift.s < 0 || fabs(hsl_shift.s - 0.5) < HSLShift::epsilon); in LineProcCopy()
256 DCHECK(hsl_shift.l < 0 || fabs(hsl_shift.l - 0.5) < HSLShift::epsilon); in LineProcCopy()
268 DCHECK(hsl_shift.s < 0 || fabs(hsl_shift.s - 0.5) < HSLShift::epsilon); in LineProcHnopSnopLdec()
269 DCHECK(hsl_shift.l <= 0.5 - HSLShift::epsilon && hsl_shift.l >= 0); in LineProcHnopSnopLdec()
292 DCHECK(hsl_shift.s < 0 || fabs(hsl_shift.s - 0.5) < HSLShift::epsilon); in LineProcHnopSnopLinc()
293 DCHECK(hsl_shift.l >= 0.5 + HSLShift::epsilon && hsl_shift.l <= 1); in LineProcHnopSnopLinc()
337 DCHECK(hsl_shift.s >= 0 && hsl_shift.s <= 0.5 - HSLShift::epsilon); in LineProcHnopSdecLnop()
338 DCHECK(hsl_shift.l < 0 || fabs(hsl_shift.l - 0.5) < HSLShift::epsilon); in LineProcHnopSdecLnop()
374 DCHECK(hsl_shift.s >= 0 && hsl_shift.s <= 0.5 - HSLShift::epsilon); in LineProcHnopSdecLdec()
375 DCHECK(hsl_shift.l >= 0 && hsl_shift.l <= 0.5 - HSLShift::epsilon); in LineProcHnopSdecLdec()
413 DCHECK(hsl_shift.s >= 0 && hsl_shift.s <= 0.5 - HSLShift::epsilon); in LineProcHnopSdecLinc()
414 DCHECK(hsl_shift.l >= 0.5 + HSLShift::epsilon && hsl_shift.l <= 1); in LineProcHnopSdecLinc()
495 HSLShift::OperationOnH H_op = HSLShift::kOpHNone; in CreateHSLShiftedBitmap()
496 HSLShift::OperationOnS S_op = HSLShift::kOpSNone; in CreateHSLShiftedBitmap()
497 HSLShift::OperationOnL L_op = HSLShift::kOpLNone; in CreateHSLShiftedBitmap()
500 H_op = HSLShift::kOpHShift; in CreateHSLShiftedBitmap()
503 if (hsl_shift.s >= 0 && hsl_shift.s <= (0.5 - HSLShift::epsilon)) in CreateHSLShiftedBitmap()
504 S_op = HSLShift::kOpSDec; in CreateHSLShiftedBitmap()
505 else if (hsl_shift.s >= (0.5 + HSLShift::epsilon)) in CreateHSLShiftedBitmap()
506 S_op = HSLShift::kOpSInc; in CreateHSLShiftedBitmap()
509 if (hsl_shift.l >= 0 && hsl_shift.l <= (0.5 - HSLShift::epsilon)) in CreateHSLShiftedBitmap()
510 L_op = HSLShift::kOpLDec; in CreateHSLShiftedBitmap()
511 else if (hsl_shift.l >= (0.5 + HSLShift::epsilon)) in CreateHSLShiftedBitmap()
512 L_op = HSLShift::kOpLInc; in CreateHSLShiftedBitmap()
514 HSLShift::LineProcessor line_proc = in CreateHSLShiftedBitmap()
515 HSLShift::kLineProcessors[H_op][S_op][L_op]; in CreateHSLShiftedBitmap()