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

Unified Diff: gm/cgm.c

Issue 1195003003: Propagate SkSurfaceProps to more call sites (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « example/HelloWorld.h ('k') | include/c/sk_surface.h » ('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..90903b31b7f10754b9cba0e7226f993bff86df15 100644
--- a/gm/cgm.c
+++ b/gm/cgm.c
@@ -53,7 +53,8 @@ void sk_test_c_api(sk_canvas_t* canvas) {
sk_imageinfo_t info = {
W, H, sk_colortype_get_default_8888(), OPAQUE_SK_ALPHATYPE
};
- sk_surface_t* surf = sk_surface_new_raster(&info);
+ sk_surfaceprops_t surfaceProps = { UNKNOWN_SK_PIXELGEOMETRY };
+ sk_surface_t* surf = sk_surface_new_raster(&info, &surfaceProps);
do_draw(sk_surface_get_canvas(surf));
sk_image_t* img0 = sk_surface_new_image_snapshot(surf);
« no previous file with comments | « example/HelloWorld.h ('k') | include/c/sk_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698