static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static void test_gradient(skiatest::Reporter *reporter)
static void test_matrix(skiatest::Reporter *reporter)
DEF_TEST(ShaderOpacity, reporter)
static void test_color(skiatest::Reporter *reporter)
static void test_bitmap(skiatest::Reporter *reporter)
@ kOpaque_SkAlphaType
pixel is opaque
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
SkShaderBase * as_SB(SkShader *shader)
#define REPORTER_ASSERT(r, cond,...)
void allocPixels(const SkImageInfo &info, size_t rowBytes)
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
bool setInfo(const SkImageInfo &imageInfo, size_t rowBytes=0)
bool setAlphaType(SkAlphaType alphaType)
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
static SkMatrix Scale(SkScalar sx, SkScalar sy)
sk_sp< SkShader > makeWithCTM(const SkMatrix &) const
sk_sp< SkShader > makeWithLocalMatrix(const SkMatrix &) const
virtual bool isOpaque() const
PODArray< SkColor > colors
SK_API sk_sp< SkShader > Color(SkColor)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
SkSamplingOptions(SkFilterMode::kLinear))
static SkImageInfo MakeN32Premul(int width, int height)
void iset(int32_t x, int32_t y)