aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkBlendMode.h
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2016-11-16 13:13:16 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-16 19:17:21 +0000
commitd5870c2a4d1765e88cd402ba7dcea0117093c80d (patch)
tree5c7b07f4a432b5867612f6f4f5db347e13a59873 /include/core/SkBlendMode.h
parentc9f0cc8700d57d57daab0aa4de1d5c367df99ceb (diff)
move SkBlendMode_Name into public (for chrome)
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4905 Change-Id: I4f6cbc7b4d2a9d41ba5da39d550961587f30a4ac Reviewed-on: https://skia-review.googlesource.com/4905 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include/core/SkBlendMode.h')
-rw-r--r--include/core/SkBlendMode.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/core/SkBlendMode.h b/include/core/SkBlendMode.h
index eb3469f256..3f8f30c510 100644
--- a/include/core/SkBlendMode.h
+++ b/include/core/SkBlendMode.h
@@ -8,6 +8,8 @@
#ifndef SkBlendMode_DEFINED
#define SkBlendMode_DEFINED
+#include "SkTypes.h"
+
enum class SkBlendMode {
kClear, //!< [0, 0]
kSrc, //!< [Sa, Sc]
@@ -48,4 +50,9 @@ enum class SkBlendMode {
kLastMode = kLuminosity
};
+/**
+ * Return the (c-string) name of the blendmode.
+ */
+SK_API const char* SkBlendMode_Name(SkBlendMode);
+
#endif