Lines Matching refs:SkEncodedImageFormat
44 static SkEncodedImageFormat kTypes[] {
45 SkEncodedImageFormat::kPNG, SkEncodedImageFormat::kJPEG, SkEncodedImageFormat::kGIF,
46 SkEncodedImageFormat::kBMP, SkEncodedImageFormat::kICO,
50 static SkEncodedImageFormat kTypes[] {
51 SkEncodedImageFormat::kPNG, SkEncodedImageFormat::kJPEG, SkEncodedImageFormat::kPNG,
52 SkEncodedImageFormat::kPNG, SkEncodedImageFormat::kPNG,
56 static SkEncodedImageFormat kTypes[] {
57 SkEncodedImageFormat::kPNG, SkEncodedImageFormat::kJPEG, SkEncodedImageFormat::kWEBP,
58 SkEncodedImageFormat::kPNG, SkEncodedImageFormat::kPNG,
62 static sk_sp<SkData> encode_data(SkEncodedImageFormat type, const SkBitmap& bitmap) { in encode_data()
74 case SkEncodedImageFormat::kPNG: { in encode_data()
80 case SkEncodedImageFormat::kJPEG: { in encode_data()
84 case SkEncodedImageFormat::kWEBP: { in encode_data()
116 for (SkEncodedImageFormat type : kTypes) { in onDraw()