Lines Matching refs:cimage

153 static const SkImage* AsImage(const sk_image_t* cimage) {  in AsImage()  argument
154 return reinterpret_cast<const SkImage*>(cimage); in AsImage()
157 static sk_image_t* ToImage(SkImage* cimage) { in ToImage() argument
158 return reinterpret_cast<sk_image_t*>(cimage); in ToImage()
214 sk_data_t* sk_image_encode(const sk_image_t* cimage) { in sk_image_encode() argument
215 return ToData(AsImage(cimage)->encode()); in sk_image_encode()
218 void sk_image_ref(const sk_image_t* cimage) { in sk_image_ref() argument
219 AsImage(cimage)->ref(); in sk_image_ref()
222 void sk_image_unref(const sk_image_t* cimage) { in sk_image_unref() argument
223 AsImage(cimage)->unref(); in sk_image_unref()
226 int sk_image_get_width(const sk_image_t* cimage) { in sk_image_get_width() argument
227 return AsImage(cimage)->width(); in sk_image_get_width()
230 int sk_image_get_height(const sk_image_t* cimage) { in sk_image_get_height() argument
231 return AsImage(cimage)->height(); in sk_image_get_height()
234 uint32_t sk_image_get_unique_id(const sk_image_t* cimage) { in sk_image_get_unique_id() argument
235 return AsImage(cimage)->uniqueID(); in sk_image_get_unique_id()
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()
623 sk_image_t* cimage = sk_surface_new_image_snapshot(csurface); in sk_test_capi() local
626 canvas->drawImage((const SkImage*)cimage, 20, 20, NULL); in sk_test_capi()
630 sk_image_unref(cimage); in sk_test_capi()