Home
last modified time | relevance | path

Searched refs:cpaint (Results 1 – 3 of 3) sorted by relevance

/external/skia/src/c/
Dsk_paint.cpp49 void sk_paint_delete(sk_paint_t* cpaint) { in sk_paint_delete() argument
50 SkDELETE(AsPaint(cpaint)); in sk_paint_delete()
53 bool sk_paint_is_antialias(const sk_paint_t* cpaint) { in sk_paint_is_antialias() argument
54 return AsPaint(*cpaint).isAntiAlias(); in sk_paint_is_antialias()
57 void sk_paint_set_antialias(sk_paint_t* cpaint, bool aa) { in sk_paint_set_antialias() argument
58 AsPaint(cpaint)->setAntiAlias(aa); in sk_paint_set_antialias()
61 sk_color_t sk_paint_get_color(const sk_paint_t* cpaint) { in sk_paint_get_color() argument
62 return AsPaint(*cpaint).getColor(); in sk_paint_get_color()
65 void sk_paint_set_color(sk_paint_t* cpaint, sk_color_t c) { in sk_paint_set_color() argument
66 AsPaint(cpaint)->setColor(c); in sk_paint_set_color()
[all …]
Dsk_types_priv.h17 static inline const SkPaint& AsPaint(const sk_paint_t& cpaint) { in AsPaint() argument
18 return reinterpret_cast<const SkPaint&>(cpaint); in AsPaint()
21 static inline const SkPaint* AsPaint(const sk_paint_t* cpaint) { in AsPaint() argument
22 return reinterpret_cast<const SkPaint*>(cpaint); in AsPaint()
25 static inline SkPaint* AsPaint(sk_paint_t* cpaint) { in AsPaint() argument
26 return reinterpret_cast<SkPaint*>(cpaint); in AsPaint()
Dsk_surface.cpp310 void sk_canvas_save_layer(sk_canvas_t* ccanvas, const sk_rect_t* crect, const sk_paint_t* cpaint) { in sk_canvas_save_layer() argument
311 AsCanvas(ccanvas)->drawRect(AsRect(*crect), AsPaint(*cpaint)); in sk_canvas_save_layer()
353 void sk_canvas_draw_paint(sk_canvas_t* ccanvas, const sk_paint_t* cpaint) { in sk_canvas_draw_paint() argument
354 AsCanvas(ccanvas)->drawPaint(AsPaint(*cpaint)); in sk_canvas_draw_paint()
357 void sk_canvas_draw_rect(sk_canvas_t* ccanvas, const sk_rect_t* crect, const sk_paint_t* cpaint) { in sk_canvas_draw_rect() argument
358 AsCanvas(ccanvas)->drawRect(AsRect(*crect), AsPaint(*cpaint)); in sk_canvas_draw_rect()
361 void sk_canvas_draw_oval(sk_canvas_t* ccanvas, const sk_rect_t* crect, const sk_paint_t* cpaint) { in sk_canvas_draw_oval() argument
362 AsCanvas(ccanvas)->drawOval(AsRect(*crect), AsPaint(*cpaint)); in sk_canvas_draw_oval()
365 void sk_canvas_draw_path(sk_canvas_t* ccanvas, const sk_path_t* cpath, const sk_paint_t* cpaint) { in sk_canvas_draw_path() argument
366 AsCanvas(ccanvas)->drawPath(AsPath(*cpath), AsPaint(*cpaint)); in sk_canvas_draw_path()
[all …]