Lines Matching refs:Mode
25 switch (srgbe.mode()) {
26 case GrSRGBEffect::Mode::kLinearToSRGB:
35 case GrSRGBEffect::Mode::kSRGBToLinear:
61 uint32_t key = static_cast<uint32_t>(srgbe.mode());
71 GrSRGBEffect::GrSRGBEffect(Mode mode)
74 , fMode(mode) {
92 case Mode::kLinearToSRGB:
95 case Mode::kSRGBToLinear:
99 SkFAIL("Unexpected mode");
109 Mode testMode = static_cast<Mode>(d->fRandom->nextRangeU(0, 1));
125 sk_sp<GrFragmentProcessor> GrSRGBEffect::Make(Mode mode) {
126 return sk_sp<GrFragmentProcessor>(new GrSRGBEffect(mode));