Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Unified Diff: third_party/WebKit/Source/platform/graphics/ImagePattern.cpp

Issue 2007553002: Retire setGradientSpaceTransform, setPatternSpaceTransform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fmalita discovers SkMatrix::I() Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp b/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
index 287fd124498edcfa51663c1da581a42f60292d0e..b435bac0e55d6bba12305ab44cdc6a8773b152c8 100644
--- a/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
@@ -30,13 +30,11 @@ ImagePattern::ImagePattern(PassRefPtr<Image> image, RepeatMode repeatMode)
}
}
-sk_sp<SkShader> ImagePattern::createShader() const
+sk_sp<SkShader> ImagePattern::createShader(const SkMatrix& localMatrix) const
{
if (!m_tileImage)
return SkShader::MakeColorShader(SK_ColorTRANSPARENT);
- SkMatrix localMatrix = affineTransformToSkMatrix(m_patternSpaceTransformation);
-
if (isRepeatXY()) {
// Fast path: for repeatXY we just return a shader from the original image.
return m_tileImage->makeShader(SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, &localMatrix);
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/ImagePattern.h ('k') | third_party/WebKit/Source/platform/graphics/Pattern.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698