301 {
303#if defined(SK_GRAPHITE)
305#endif
310
311
312
314 for (
int y = 0;
y < kN; ++
y) {
315 for (
int x = 0;
x < kM; ++
x) {
317 fSet[i].
fAlpha = (kM -
x) / (
float) kM;
319#if defined(SK_GRAPHITE)
320 if (recorder) {
323 } else
324#endif
325 {
328 }
329 }
330 }
331 }
333 }
static GrDirectContext * GrAsDirectContext(GrContext_Base *base)
@ kAlpha_8_SkColorType
pixel with alpha in 8-bit byte
constexpr SkColor SK_ColorTRANSPARENT
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
constexpr SkColor kBGColor
virtual GrRecordingContext * recordingContext() const
virtual skgpu::graphite::Recorder * recorder() const
static sk_sp< SkColorSpace > MakeSRGB()
virtual sk_sp< SkImage > makeColorTypeAndColorSpace(GrDirectContext *direct, SkColorType targetColorType, sk_sp< SkColorSpace > targetCS) const =0
static void make_image_tiles(int tileW, int tileH, int m, int n, const SkColor colors[4], SkCanvas::ImageSetEntry set[], const SkColor bgColor=SK_ColorLTGRAY)
sk_sp< const SkImage > fImage