aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkDither.h
diff options
context:
space:
mode:
authorGravatar Derek Sollenberger <djsollen@google.com>2017-09-20 15:51:08 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-21 18:14:36 +0000
commit2fbf1bc8c96f749a4c098bcfc827053445c2e12d (patch)
tree0271e86a08bec62b58b71d661c86bc0af325488e /src/core/SkDither.h
parentf4b9bf7d9e688f1afedcf4a960a31582ddb56f4a (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 'src/core/SkDither.h')
-rw-r--r--src/core/SkDither.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkDither.h b/src/core/SkDither.h
index b73f72e3df..685d11754e 100644
--- a/src/core/SkDither.h
+++ b/src/core/SkDither.h
@@ -183,8 +183,8 @@ static inline SkPMColor16 SkDitherARGB32To4444(SkPMColor c, unsigned dither)
#define DITHER_VALUE(x) dither_scan[(x) & 3]
#else
- extern const uint16_t gDitherMatrix_4Bit_16[4];
- extern const uint16_t gDitherMatrix_3Bit_16[4];
+ extern SK_API const uint16_t gDitherMatrix_4Bit_16[4];
+ extern SK_API const uint16_t gDitherMatrix_3Bit_16[4];
#define DITHER_4444_SCAN(y) const uint16_t dither_scan = gDitherMatrix_4Bit_16[(y) & 3]
#define DITHER_565_SCAN(y) const uint16_t dither_scan = gDitherMatrix_3Bit_16[(y) & 3]