Lines Matching refs:cdata
77 static SkData* AsData(const sk_data_t* cdata) { in AsData() argument
78 return reinterpret_cast<SkData*>(const_cast<sk_data_t*>(cdata)); in AsData()
149 sk_image_t* sk_image_new_from_encoded(const sk_data_t* cdata) { in sk_image_new_from_encoded() argument
150 return ToImage(SkImage::MakeFromEncoded(sk_ref_sp(AsData(cdata))).release()); in sk_image_new_from_encoded()
458 void sk_data_ref(const sk_data_t* cdata) { in sk_data_ref() argument
459 SkSafeRef(AsData(cdata)); in sk_data_ref()
462 void sk_data_unref(const sk_data_t* cdata) { in sk_data_unref() argument
463 SkSafeUnref(AsData(cdata)); in sk_data_unref()
466 size_t sk_data_get_size(const sk_data_t* cdata) { in sk_data_get_size() argument
467 return AsData(cdata)->size(); in sk_data_get_size()
470 const void* sk_data_get_data(const sk_data_t* cdata) { in sk_data_get_data() argument
471 return AsData(cdata)->data(); in sk_data_get_data()