Lines Matching refs:crect

161 static const SkRect& AsRect(const sk_rect_t& crect) {  in AsRect()  argument
162 return reinterpret_cast<const SkRect&>(crect); in AsRect()
289 void sk_path_add_rect(sk_path_t* cpath, const sk_rect_t* crect, sk_path_direction_t cdir) { in sk_path_add_rect() argument
294 as_path(cpath)->addRect(AsRect(*crect), dir); in sk_path_add_rect()
297 void sk_path_add_oval(sk_path_t* cpath, const sk_rect_t* crect, sk_path_direction_t cdir) { in sk_path_add_oval() argument
302 as_path(cpath)->addOval(AsRect(*crect), dir); in sk_path_add_oval()
305 bool sk_path_get_bounds(const sk_path_t* cpath, sk_rect_t* crect) { in sk_path_get_bounds() argument
309 if (crect) { in sk_path_get_bounds()
310 *crect = ToRect(SkRect::MakeEmpty()); in sk_path_get_bounds()
315 if (crect) { in sk_path_get_bounds()
316 *crect = ToRect(path.getBounds()); in sk_path_get_bounds()
327 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
328 AsCanvas(ccanvas)->drawRect(AsRect(*crect), AsPaint(*cpaint)); in sk_canvas_save_layer()
362 void sk_canvas_clip_rect(sk_canvas_t* ccanvas, const sk_rect_t* crect) { in sk_canvas_clip_rect() argument
363 AsCanvas(ccanvas)->clipRect(AsRect(*crect)); in sk_canvas_clip_rect()
374 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
375 AsCanvas(ccanvas)->drawRect(AsRect(*crect), AsPaint(*cpaint)); in sk_canvas_draw_rect()
383 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
384 AsCanvas(ccanvas)->drawOval(AsRect(*crect), AsPaint(*cpaint)); in sk_canvas_draw_oval()