Lines Matching refs:ccanvas

165 static SkCanvas* AsCanvas(sk_canvas_t* ccanvas) {  in AsCanvas()  argument
166 return reinterpret_cast<SkCanvas*>(ccanvas); in AsCanvas()
306 void sk_canvas_save(sk_canvas_t* ccanvas) { in sk_canvas_save() argument
307 AsCanvas(ccanvas)->save(); in sk_canvas_save()
310 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()
314 void sk_canvas_restore(sk_canvas_t* ccanvas) { in sk_canvas_restore() argument
315 AsCanvas(ccanvas)->restore(); in sk_canvas_restore()
318 void sk_canvas_translate(sk_canvas_t* ccanvas, float dx, float dy) { in sk_canvas_translate() argument
319 AsCanvas(ccanvas)->translate(dx, dy); in sk_canvas_translate()
322 void sk_canvas_scale(sk_canvas_t* ccanvas, float sx, float sy) { in sk_canvas_scale() argument
323 AsCanvas(ccanvas)->scale(sx, sy); in sk_canvas_scale()
326 void sk_canvas_rotate_degress(sk_canvas_t* ccanvas, float degrees) { in sk_canvas_rotate_degress() argument
327 AsCanvas(ccanvas)->rotate(degrees); in sk_canvas_rotate_degress()
330 void sk_canvas_rotate_radians(sk_canvas_t* ccanvas, float radians) { in sk_canvas_rotate_radians() argument
331 AsCanvas(ccanvas)->rotate(SkRadiansToDegrees(radians)); in sk_canvas_rotate_radians()
334 void sk_canvas_skew(sk_canvas_t* ccanvas, float sx, float sy) { in sk_canvas_skew() argument
335 AsCanvas(ccanvas)->skew(sx, sy); in sk_canvas_skew()
338 void sk_canvas_concat(sk_canvas_t* ccanvas, const sk_matrix_t* cmatrix) { in sk_canvas_concat() argument
342 AsCanvas(ccanvas)->concat(matrix); in sk_canvas_concat()
345 void sk_canvas_clip_rect(sk_canvas_t* ccanvas, const sk_rect_t* crect) { in sk_canvas_clip_rect() argument
346 AsCanvas(ccanvas)->clipRect(AsRect(*crect)); in sk_canvas_clip_rect()
349 void sk_canvas_clip_path(sk_canvas_t* ccanvas, const sk_path_t* cpath) { in sk_canvas_clip_path() argument
350 AsCanvas(ccanvas)->clipPath(AsPath(*cpath)); in sk_canvas_clip_path()
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()
369 void sk_canvas_draw_image(sk_canvas_t* ccanvas, const sk_image_t* cimage, float x, float y, in sk_canvas_draw_image() argument
371 AsCanvas(ccanvas)->drawImage(AsImage(cimage), x, y, AsPaint(cpaint)); in sk_canvas_draw_image()
374 void sk_canvas_draw_image_rect(sk_canvas_t* ccanvas, const sk_image_t* cimage, in sk_canvas_draw_image_rect() argument
377 … AsCanvas(ccanvas)->drawImageRect(AsImage(cimage), AsRect(csrcR), AsRect(*cdstR), AsPaint(cpaint)); in sk_canvas_draw_image_rect()
380 void sk_canvas_draw_picture(sk_canvas_t* ccanvas, const sk_picture_t* cpicture, in sk_canvas_draw_picture() argument
388 AsCanvas(ccanvas)->drawPicture(AsPicture(cpicture), matrixPtr, AsPaint(cpaint)); in sk_canvas_draw_picture()
599 sk_canvas_t* ccanvas = sk_surface_get_canvas(csurface); in sk_test_capi() local
606 sk_canvas_draw_oval(ccanvas, &cr, cpaint); in sk_test_capi()
613 sk_canvas_draw_rect(ccanvas, &cr, cpaint); in sk_test_capi()
621 sk_canvas_draw_path(ccanvas, cpath, cpaint); in sk_test_capi()