Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: gm/cgm.c

Issue 1199473002: change old picture serialization to really handle images (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix check in new_array function Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gm/factory.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | gm/factory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698