Lines Matching refs:pixels
15 static void clamp_to_alpha(uint32_t* pixels, int count) { in clamp_to_alpha() argument
17 uint8_t a = SkGetPackedA32(pixels[i]); in clamp_to_alpha()
18 uint8_t r = SkGetPackedR32(pixels[i]); in clamp_to_alpha()
19 uint8_t g = SkGetPackedG32(pixels[i]); in clamp_to_alpha()
20 uint8_t b = SkGetPackedB32(pixels[i]); in clamp_to_alpha()
21 pixels[i] = SkPackARGB32(a, in clamp_to_alpha()
68 uint32_t* pixels = bitmap.getAddr32(0, 0); in onDraw() local
79 fXform->apply(select_xform_format(kN32_SkColorType), pixels, in onDraw()
82 SkOpts::RGBA_to_rgbA(pixels, pixels, kAlphaMax); in onDraw()
91 SkOpts::RGBA_to_rgbA(pixels, row, kAlphaMax); in onDraw()
92 fXform->apply(select_xform_format(kN32_SkColorType), pixels, in onDraw()
93 SkColorSpaceXform::kBGRA_8888_ColorFormat, pixels, kAlphaMax, in onDraw()
95 clamp_to_alpha(pixels, kAlphaMax); in onDraw()