22 static const struct Rec {
33 { kN32_SkColorType, 0xFFFFFFFF, 0xFFFFFFFF },
34 { kN32_SkColorType, 0, 0 },
35 { kN32_SkColorType, 0xFF224466, 0xFF224466 },
40 const SkColor initColor = 0xFF0000FF;
41 const SkIRect area = { 1, 1, 3, 3 };
43 for (
size_t i = 0; i < std::size(
gRec); i++) {
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static const struct @223 gRec[]
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kAlpha_8_SkColorType
pixel with alpha in 8-bit byte
@ kRGB_565_SkColorType
pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
#define DEF_TEST(name, reporter)
#define REPORTER_ASSERT(r, cond,...)
bool installPixels(const SkImageInfo &info, void *pixels, size_t rowBytes, void(*releaseProc)(void *addr, void *context), void *context)
void eraseArea(const SkIRect &area, SkColor c) const
SkColor getColor(int x, int y) const
void eraseColor(SkColor4f) const
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)