aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-06-23 06:26:08 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-23 06:26:08 -0700
commit702edbd4bc41230902b5fe69d14d15763c27fafe (patch)
tree7c8f0cef358e47fdb1f6fcf08f9ecf830fcf4bad /gm
parent0a9af33a929f937e3630cd76c5b36d92344ee06a (diff)
Propagate SkSurfaceProps to more call sites
Start moving to a world where everyone provides surface properties. Most notably this exposes a portion of SkSurfaceProps to the C API. BUG=skia:3934 Review URL: https://codereview.chromium.org/1195003003
Diffstat (limited to 'gm')
-rw-r--r--gm/cgm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/cgm.c b/gm/cgm.c
index 7d09faf7dd..5e57225b64 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);