63 p.setAntiAlias(
false);
92 if ((
m %
W) ==
W - 1) {
100 void onOnceBeforeDraw()
override {
101 const uint32_t kCheckData[] = {
109 memcpy(bg.
getPixels(), kCheckData,
sizeof(kCheckData));
119 for (
int y = 0;
y < kSize; ++
y) {
120 int c =
y * (1 << kShift);
122 for (
int x = 0;
x < kSize; ++
x) {
123 pixels[kSize *
y +
x] = rowColor;
132 int c =
x * (1 << kShift);
135 pixels[
kSize *
y +
x] = colColor;
143 kSize = 256 >> kShift,
151 using INHERITED =
GM;
156DEF_GM(
return new Xfermodes2GM(
false); )
157DEF_GM(
return new Xfermodes2GM(
true); )
SK_API const char * SkBlendMode_Name(SkBlendMode blendMode)
static constexpr int kSkBlendModeCount
@ kSrcOver
r = s + (1-sa)*d
static SkPMColor SkPackARGB32(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
void allocN32Pixels(int width, int height, bool isOpaque=false)
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
SkMatrix & setScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py)
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
static void DrawString(SkCanvas *canvas, const char text[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint, Align align=kLeft_Align)
GM(SkColor backgroundColor=SK_ColorWHITE)
SkISize getISize() override
Xfermodes2GM(bool grayscale)
void onDraw(SkCanvas *canvas) override
SkString getName() const override
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
font
Font Metadata and Metrics.
DEF_GM(return F(C(clipbox), 0.0f, 0.0f, {})) DEF_GM(return F(C(clipbox)
SkSamplingOptions(SkFilterMode::kLinear))
static constexpr SkISize Make(int32_t w, int32_t h)
void inset(float dx, float dy)
static constexpr SkRect MakeWH(float w, float h)