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

Unified Diff: gm/cgm.c

Issue 820343002: disable using codecs until that can work in chrome (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 | src/c/sk_surface.cpp » ('j') | src/c/sk_surface.cpp » ('J')
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 5a20a7d1bfe3a8c3e8def08e217ef495e015cecd..8e65bda30769755a558e849b91297f9f4753ad9a 100644
--- a/gm/cgm.c
+++ b/gm/cgm.c
@@ -67,8 +67,10 @@ void sk_test_c_api(sk_canvas_t* canvas) {
sk_image_t* img1 = sk_image_new_from_data(data);
sk_data_unref(data);
- sk_canvas_draw_image(canvas, img1, W/2, H/2, NULL);
- sk_image_unref(img1);
+ if (img1) {
scroggo 2014/12/30 11:14:33 Can we at least log something in this case? It see
+ sk_canvas_draw_image(canvas, img1, W/2, H/2, NULL);
+ sk_image_unref(img1);
+ }
}
« no previous file with comments | « no previous file | src/c/sk_surface.cpp » ('j') | src/c/sk_surface.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698