aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-02-16 12:40:18 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-16 23:19:47 +0000
commitdfc0e910dfdf7ad11995d357e44c029d839f2e73 (patch)
tree59710dc00e01ceeddfe79ed920d308b12761d31a /include
parent1701ecea23b05d66476de4358d4ff74fd19c3a67 (diff)
add decal tilemode to shaders
Plenty more to follow-up: - gradients - gpu impl Bug: skia:7638 Change-Id: I8e54fd0e24921f040f178c793b36c7fb855b136e Reviewed-on: https://skia-review.googlesource.com/107420 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/core/SkShader.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/core/SkShader.h b/include/core/SkShader.h
index a5ba12ec2f..58d9ca8da0 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -53,14 +53,17 @@ public:
*/
kMirror_TileMode,
-#if 0
- /** only draw within the original domain, return 0 everywhere else */
+ /**
+ * Only draw within the original domain, return transparent-black everywhere else.
+ * EXPERIMENTAL -- DO NOT USE YET
+ */
kDecal_TileMode,
-#endif
+
+ kLast_TileMode = kDecal_TileMode
};
enum {
- kTileModeCount = kMirror_TileMode + 1
+ kTileModeCount = kLast_TileMode + 1
};
/**