Lines Matching defs:ct
49 auto ct = format.asMockColorType();
50 return GrGetColorTypeDesc(ct).encoding() == GrColorTypeEncoding::kSRGBUnorm;
67 bool isFormatAsColorTypeRenderable(GrColorType ct, const GrBackendFormat& format,
72 if (ct == GrColorType::kRGB_888x) {
98 int maxRenderTargetSampleCount(GrColorType ct) const {
99 switch (fOptions.fConfigOptions[(int)ct].fRenderability) {
133 GrSwizzle getWriteSwizzle(const GrBackendFormat& format, GrColorType ct) const override {
134 SkASSERT(this->areColorTypeAndFormatCompatible(ct, format));
154 GrBackendFormat onGetDefaultBackendFormat(GrColorType ct) const override {
155 return GrBackendFormat::MakeMock(ct, SkImage::CompressionType::kNone);
158 bool onAreColorTypeAndFormatCompatible(GrColorType ct,
160 if (ct == GrColorType::kUnknown) {
167 return ct == GrColorType::kRGB_888x; // TODO: this may be too restrictive
170 return ct == GrColorType::kRGBA_8888;
173 return ct == format.asMockColorType();
181 GrSwizzle onGetReadSwizzle(const GrBackendFormat& format, GrColorType ct) const override {
182 SkASSERT(this->areColorTypeAndFormatCompatible(ct, format));