Lines Matching refs:crect
89 static const SkRect& AsRect(const sk_rect_t& crect) { in AsRect() argument
90 return reinterpret_cast<const SkRect&>(crect); in AsRect()
210 void sk_pathbuilder_add_rect(sk_pathbuilder_t* cbuilder, const sk_rect_t* crect, sk_path_direction_… in sk_pathbuilder_add_rect() argument
215 as_pathbuilder(cbuilder)->addRect(AsRect(*crect), dir); in sk_pathbuilder_add_rect()
218 void sk_pathbuilder_add_oval(sk_pathbuilder_t* cbuilder, const sk_rect_t* crect, sk_path_direction_… in sk_pathbuilder_add_oval() argument
223 as_pathbuilder(cbuilder)->addOval(AsRect(*crect), dir); in sk_pathbuilder_add_oval()
238 bool sk_path_get_bounds(const sk_path_t* cpath, sk_rect_t* crect) { in sk_path_get_bounds() argument
242 if (crect) { in sk_path_get_bounds()
243 *crect = ToRect(SkRect::MakeEmpty()); in sk_path_get_bounds()
248 if (crect) { in sk_path_get_bounds()
249 *crect = ToRect(path.getBounds()); in sk_path_get_bounds()
260 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
261 AsCanvas(ccanvas)->drawRect(AsRect(*crect), AsPaint(*cpaint)); in sk_canvas_save_layer()
295 void sk_canvas_clip_rect(sk_canvas_t* ccanvas, const sk_rect_t* crect) { in sk_canvas_clip_rect() argument
296 AsCanvas(ccanvas)->clipRect(AsRect(*crect)); in sk_canvas_clip_rect()
307 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
308 AsCanvas(ccanvas)->drawRect(AsRect(*crect), AsPaint(*cpaint)); in sk_canvas_draw_rect()
316 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
317 AsCanvas(ccanvas)->drawOval(AsRect(*crect), AsPaint(*cpaint)); in sk_canvas_draw_oval()