diff options
author | halcanary <halcanary@google.com> | 2015-09-01 10:01:38 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-01 10:01:38 -0700 |
commit | 219f18f30df465beeee8114febe52fa50454a804 (patch) | |
tree | 5703b19e7b099452742697c6bb0c7fe7d49b2ab5 /include/c/sk_surface.h | |
parent | 73fa61670d95c52250a660a2cec618ab77716934 (diff) |
C API: Add SK_API, also documentation of an example.
SK_API = __declspec(dllexport) / __attribute__((visibility("default")))
Also, add documentation in experimental/c-api-example/c.md
Review URL: https://codereview.chromium.org/1307183006
Diffstat (limited to 'include/c/sk_surface.h')
-rw-r--r-- | include/c/sk_surface.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/c/sk_surface.h b/include/c/sk_surface.h index 397dc833c2..f3c17d075d 100644 --- a/include/c/sk_surface.h +++ b/include/c/sk_surface.h @@ -15,21 +15,22 @@ SK_C_PLUS_PLUS_BEGIN_GUARD -sk_surface_t* sk_surface_new_raster(const sk_imageinfo_t*, const sk_surfaceprops_t*); -sk_surface_t* sk_surface_new_raster_direct(const sk_imageinfo_t*, void* pixels, size_t rowBytes, - const sk_surfaceprops_t* props); -void sk_surface_unref(sk_surface_t*); +SK_API sk_surface_t* sk_surface_new_raster(const sk_imageinfo_t*, const sk_surfaceprops_t*); +SK_API sk_surface_t* sk_surface_new_raster_direct(const sk_imageinfo_t*, + void* pixels, size_t rowBytes, + const sk_surfaceprops_t* props); +SK_API void sk_surface_unref(sk_surface_t*); /** * Return the canvas associated with this surface. Note: the canvas is owned by the surface, * so the returned object is only valid while the owning surface is valid. */ -sk_canvas_t* sk_surface_get_canvas(sk_surface_t*); +SK_API sk_canvas_t* sk_surface_get_canvas(sk_surface_t*); /** * Call sk_image_unref() when the returned image is no longer used. */ -sk_image_t* sk_surface_new_image_snapshot(sk_surface_t*); +SK_API sk_image_t* sk_surface_new_image_snapshot(sk_surface_t*); SK_C_PLUS_PLUS_END_GUARD |