Lines Matching refs:GrSwizzle
343 static GrSwizzle get_load_and_src_swizzle(GrColorType ct, SkRasterPipeline::StockStage* load, in get_load_and_src_swizzle()
345 GrSwizzle swizzle("rgba"); in get_load_and_src_swizzle()
353 case GrColorType::kARGB_4444: swizzle = GrSwizzle("bgra"); in get_load_and_src_swizzle()
355 case GrColorType::kBGRA_4444: swizzle = GrSwizzle("gbar"); in get_load_and_src_swizzle()
361 swizzle = GrSwizzle("bgra"); in get_load_and_src_swizzle()
381 swizzle = GrSwizzle("000r"); in get_load_and_src_swizzle()
384 swizzle = GrSwizzle("000r"); in get_load_and_src_swizzle()
387 swizzle = GrSwizzle("rrr1"); in get_load_and_src_swizzle()
390 swizzle = GrSwizzle("aaa1"); in get_load_and_src_swizzle()
393 swizzle = GrSwizzle("rrrg"); in get_load_and_src_swizzle()
396 swizzle = GrSwizzle("bgra"); in get_load_and_src_swizzle()
399 swizzle = GrSwizzle("rgb1"); in get_load_and_src_swizzle()
420 static GrSwizzle get_dst_swizzle_and_store(GrColorType ct, SkRasterPipeline::StockStage* store, in get_dst_swizzle_and_store()
422 GrSwizzle swizzle("rgba"); in get_dst_swizzle_and_store()
431 case GrColorType::kARGB_4444: swizzle = GrSwizzle("bgra"); in get_dst_swizzle_and_store()
433 case GrColorType::kBGRA_4444: swizzle = GrSwizzle("argb"); in get_dst_swizzle_and_store()
438 case GrColorType::kBGRA_1010102: swizzle = GrSwizzle("bgra"); in get_dst_swizzle_and_store()
461 swizzle = GrSwizzle("a000"); in get_dst_swizzle_and_store()
464 swizzle = GrSwizzle("a000"); in get_dst_swizzle_and_store()
466 case GrColorType::kBGRA_8888: swizzle = GrSwizzle("bgra"); in get_dst_swizzle_and_store()
469 case GrColorType::kRGB_888x: swizzle = GrSwizzle("rgb1"); in get_dst_swizzle_and_store()
472 case GrColorType::kR_8: swizzle = GrSwizzle("agbr"); in get_dst_swizzle_and_store()
475 case GrColorType::kR_16: swizzle = GrSwizzle("agbr"); in get_dst_swizzle_and_store()
478 case GrColorType::kR_F16: swizzle = GrSwizzle("agbr"); in get_dst_swizzle_and_store()
488 swizzle = GrSwizzle("ragb"); in get_dst_swizzle_and_store()
493 swizzle = GrSwizzle("r000"); in get_dst_swizzle_and_store()
610 GrSwizzle loadStoreSwizzle; in GrConvertPixels()
617 loadStoreSwizzle = GrSwizzle::Concat(loadSwizzle, storeSwizzle); in GrConvertPixels()
717 GrSwizzle storeSwizzle = get_dst_swizzle_and_store(dstInfo.colorType(), &store, &lumMode, in GrClearImage()