diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkImage.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/SkImage.h b/include/core/SkImage.h index c52ad3d41e..1e5df0b116 100644 --- a/include/core/SkImage.h +++ b/include/core/SkImage.h @@ -252,6 +252,12 @@ public: sk_sp<SkShader> makeShader(SkShader::TileMode, SkShader::TileMode, const SkMatrix* localMatrix = nullptr) const; + /** + * Helper version of makeShader() that specifies Clamp tilemode. + */ + sk_sp<SkShader> makeShader(const SkMatrix* localMatrix = nullptr) const { + return this->makeShader(SkShader::kClamp_TileMode, SkShader::kClamp_TileMode, localMatrix); + } /** * If the image has direct access to its pixels (i.e. they are in local RAM) |