• Home
  • Raw
  • Download

Lines Matching refs:SkCanvas

23 static void draw_text(SkCanvas* canvas, const char* text) {  in draw_text()
27 static void draw_gradient_tiles(SkCanvas* canvas, bool alignGradients) { in draw_gradient_tiles()
48 unsigned aa = SkCanvas::kNone_QuadAAFlags; in draw_gradient_tiles()
50 aa |= SkCanvas::kTop_QuadAAFlag; in draw_gradient_tiles()
53 aa |= SkCanvas::kBottom_QuadAAFlag; in draw_gradient_tiles()
56 aa |= SkCanvas::kLeft_QuadAAFlag; in draw_gradient_tiles()
59 aa |= SkCanvas::kRight_QuadAAFlag; in draw_gradient_tiles()
76 tile, static_cast<SkCanvas::QuadAAFlags>(aa), color, SkBlendMode::kSrcOver); in draw_gradient_tiles()
87 static void draw_color_tiles(SkCanvas* canvas, bool multicolor) { in draw_color_tiles()
99 unsigned aa = SkCanvas::kNone_QuadAAFlags; in draw_color_tiles()
101 aa |= SkCanvas::kTop_QuadAAFlag; in draw_color_tiles()
104 aa |= SkCanvas::kBottom_QuadAAFlag; in draw_color_tiles()
107 aa |= SkCanvas::kLeft_QuadAAFlag; in draw_color_tiles()
110 aa |= SkCanvas::kRight_QuadAAFlag; in draw_color_tiles()
114 tile, static_cast<SkCanvas::QuadAAFlags>(aa), color.toSkColor(), in draw_color_tiles()
120 static void draw_tile_boundaries(SkCanvas* canvas, const SkMatrix& local) { in draw_tile_boundaries()
145 typedef void (*TileRenderer)(SkCanvas*);
147 [](SkCanvas* canvas) { draw_gradient_tiles(canvas, /* aligned */ false); }, in __anon6c6d14810102()
148 [](SkCanvas* canvas) { draw_gradient_tiles(canvas, /* aligned */ true); }, in __anon6c6d14810202()
149 [](SkCanvas* canvas) { draw_color_tiles(canvas, /* multicolor */ false); }, in __anon6c6d14810302()
150 [](SkCanvas* canvas) { draw_color_tiles(canvas, /* multicolor */true); }, in __anon6c6d14810402()
162 void onDraw(SkCanvas* canvas) override { in onDraw()