diff options
author | Derek Sollenberger <djsollen@google.com> | 2017-09-20 15:51:08 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-21 18:14:36 +0000 |
commit | 2fbf1bc8c96f749a4c098bcfc827053445c2e12d (patch) | |
tree | 0271e86a08bec62b58b71d661c86bc0af325488e /include/core | |
parent | f4b9bf7d9e688f1afedcf4a960a31582ddb56f4a (diff) |
Add SK_API to APIs used by the android framework.
This CL enables us to set the default visibility of the symbols
on Android to hidden. It is the intent that all of he SK_APIs
that have been added to /src directies should be removed as soon
as we can remove their callers within Android.
Bug: b/31971097
Change-Id: Ic787f94df0fb0c2b8d941aa7095a12b317c4b5de
Reviewed-on: https://skia-review.googlesource.com/49501
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Derek Sollenberger <djsollen@google.com>
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkColor.h | 2 | ||||
-rw-r--r-- | include/core/SkDrawable.h | 2 | ||||
-rw-r--r-- | include/core/SkVertices.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/core/SkColor.h b/include/core/SkColor.h index 8197408739..c8c6a6acf3 100644 --- a/include/core/SkColor.h +++ b/include/core/SkColor.h @@ -175,7 +175,7 @@ struct SkPM4f; /* * The float values are 0...1 unpremultiplied */ -struct SkColor4f { +struct SK_API SkColor4f { float fR; float fG; float fB; diff --git a/include/core/SkDrawable.h b/include/core/SkDrawable.h index f466d0a59c..6b9bf7ee34 100644 --- a/include/core/SkDrawable.h +++ b/include/core/SkDrawable.h @@ -23,7 +23,7 @@ struct SkRect; * allow for clients of the drawable that may want to cache the results, the drawable must * change its generation ID whenever its internal state changes such that it will draw differently. */ -class SkDrawable : public SkFlattenable { +class SK_API SkDrawable : public SkFlattenable { public: SkDrawable(); diff --git a/include/core/SkVertices.h b/include/core/SkVertices.h index a245c18502..13aab5b3a8 100644 --- a/include/core/SkVertices.h +++ b/include/core/SkVertices.h @@ -17,7 +17,7 @@ /** * An immutable set of vertex data that can be used with SkCanvas::drawVertices. */ -class SkVertices : public SkNVRefCnt<SkVertices> { +class SK_API SkVertices : public SkNVRefCnt<SkVertices> { public: enum VertexMode { kTriangles_VertexMode, |