39 uint32_t* pixels =
reinterpret_cast<uint32_t*
>(bmp.
getPixels());
51class ClippedBitmapShadersGM :
public skiagm::GM {
68 descriptor =
"mirror";
77 descriptor.
prepend(
"clipped-bitmap-shaders-");
99 for (
int i = 0;
i < 3;
i++) {
101 for (
int j = 0; j < 3; j++) {
103 if (
i == 1 && j == 1) {
107 RECT_SIZE, RECT_SIZE);
SK_API SkPMColor SkPreMultiplyColor(SkColor c)
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorGREEN
#define INHERITED(method,...)
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
void allocN32Pixels(int width, int height, bool isOpaque=false)
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void append(const char text[])
void prepend(const char text[])
GM(SkColor backgroundColor=SK_ColorWHITE)
virtual SkISize getISize()=0
virtual SkString getName() const =0
virtual DrawResult onDraw(SkCanvas *, SkString *errorMsg)
static SkBitmap create_bitmap(SkIRect contentRect, SkISize fullSize, GrSurfaceOrigin origin)
sk_sp< SkBlender > blender SkRect rect
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 constexpr SkCubicResampler Mitchell()
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)