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 /src/c | |
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 'src/c')
-rw-r--r-- | src/c/sk_paint.cpp | 4 | ||||
-rw-r--r-- | src/c/sk_surface.cpp | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/c/sk_paint.cpp b/src/c/sk_paint.cpp index dcf26834aa..dd0733f02e 100644 --- a/src/c/sk_paint.cpp +++ b/src/c/sk_paint.cpp @@ -5,11 +5,11 @@ * found in the LICENSE file. */ +#include "SkPaint.h" + #include "sk_paint.h" #include "sk_types_priv.h" -#include "SkPaint.h" - #define MAKE_FROM_TO_NAME(FROM) g_ ## FROM ## _map const struct { diff --git a/src/c/sk_surface.cpp b/src/c/sk_surface.cpp index 722ca46a2f..b8fbc63f63 100644 --- a/src/c/sk_surface.cpp +++ b/src/c/sk_surface.cpp @@ -5,14 +5,6 @@ * found in the LICENSE file. */ -#include "sk_canvas.h" -#include "sk_data.h" -#include "sk_image.h" -#include "sk_paint.h" -#include "sk_path.h" -#include "sk_surface.h" -#include "sk_types_priv.h" - #include "SkCanvas.h" #include "SkData.h" #include "SkImage.h" @@ -23,6 +15,14 @@ #include "SkPictureRecorder.h" #include "SkSurface.h" +#include "sk_canvas.h" +#include "sk_data.h" +#include "sk_image.h" +#include "sk_paint.h" +#include "sk_path.h" +#include "sk_surface.h" +#include "sk_types_priv.h" + const struct { sk_colortype_t fC; SkColorType fSK; |