From dfc0e910dfdf7ad11995d357e44c029d839f2e73 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Fri, 16 Feb 2018 12:40:18 -0500 Subject: 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 Reviewed-by: Florin Malita Reviewed-by: Mike Klein --- include/core/SkShader.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'include') 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 }; /** -- cgit v1.2.3