From 0beaba5b34888001c3811c26be6954696a2cdbdf Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Fri, 16 Mar 2012 14:38:06 +0000 Subject: decal mode babystep git-svn-id: http://skia.googlecode.com/svn/trunk@3413 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkShader.h | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/core/SkShader.h b/include/core/SkShader.h index 7c5be065e8..331799a187 100644 --- a/include/core/SkShader.h +++ b/include/core/SkShader.h @@ -49,9 +49,23 @@ public: void resetLocalMatrix(); enum TileMode { - kClamp_TileMode, //!< replicate the edge color if the shader draws outside of its original bounds - kRepeat_TileMode, //!< repeat the shader's image horizontally and vertically - kMirror_TileMode, //!< repeat the shader's image horizontally and vertically, alternating mirror images so that adjacent images always seam + /** replicate the edge color if the shader draws outside of its + * original bounds + */ + kClamp_TileMode, + + /** repeat the shader's image horizontally and vertically */ + kRepeat_TileMode, + + /** repeat the shader's image horizontally and vertically, alternating + * mirror images so that adjacent images always seam + */ + kMirror_TileMode, + +#if 0 + /** only draw within the original domain, return 0 everywhere else */ + kDecal_TileMode, +#endif kTileModeCount }; -- cgit v1.2.3