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

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

Issue 2007553002: Retire setGradientSpaceTransform, setPatternSpaceTransform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review 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/PicturePattern.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/PicturePattern.cpp b/third_party/WebKit/Source/platform/graphics/PicturePattern.cpp
index b21b4df1c4f5d3933a05c62ca4d5bc32b903bbf4..0f1a02f45b974b5ab9c586642774052bb665210c 100644
--- a/third_party/WebKit/Source/platform/graphics/PicturePattern.cpp
+++ b/third_party/WebKit/Source/platform/graphics/PicturePattern.cpp
@@ -30,13 +30,12 @@ PicturePattern::~PicturePattern()
{
}
-sk_sp<SkShader> PicturePattern::createShader() const
+sk_sp<SkShader> PicturePattern::createShader(const SkMatrix* localMatrix) const
{
- SkMatrix localMatrix = affineTransformToSkMatrix(m_patternSpaceTransformation);
SkRect tileBounds = m_tilePicture->cullRect();
return SkShader::MakePictureShader(m_tilePicture,
- SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, &localMatrix, &tileBounds);
+ SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, localMatrix, &tileBounds);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698