Index: gm/cgm.c |
diff --git a/gm/cgm.c b/gm/cgm.c |
index 8e65bda30769755a558e849b91297f9f4753ad9a..7d09faf7dd9bdbd5736583c9c35f2b5651a3d1e0 100644 |
--- a/gm/cgm.c |
+++ b/gm/cgm.c |
@@ -64,7 +64,7 @@ void sk_test_c_api(sk_canvas_t* canvas) { |
sk_data_t* data = sk_image_encode(img0); |
sk_image_unref(img0); |
- sk_image_t* img1 = sk_image_new_from_data(data); |
+ sk_image_t* img1 = sk_image_new_from_encoded(data, NULL); |
sk_data_unref(data); |
if (img1) { |