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

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

Issue 1814473003: Revert of Add sk_sp helpers and switch Blink SkShader clients to the new APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 ccda6c0819b16c0fc4ce027533da30b0b16ab8ac..728a27e84b67925f3b8bc508a5d6b03d9236d02f 100644
--- a/third_party/WebKit/Source/platform/graphics/PicturePattern.cpp
+++ b/third_party/WebKit/Source/platform/graphics/PicturePattern.cpp
@@ -10,13 +10,13 @@
namespace blink {
-PassRefPtr<PicturePattern> PicturePattern::create(PassRefPtr<SkPicture> picture,
+PassRefPtr<PicturePattern> PicturePattern::create(PassRefPtr<const SkPicture> picture,
RepeatMode repeatMode)
{
return adoptRef(new PicturePattern(picture, repeatMode));
}
-PicturePattern::PicturePattern(PassRefPtr<SkPicture> picture, RepeatMode mode)
+PicturePattern::PicturePattern(PassRefPtr<const SkPicture> picture, RepeatMode mode)
: Pattern(mode)
, m_tilePicture(picture)
{
@@ -35,7 +35,7 @@
SkMatrix localMatrix = affineTransformToSkMatrix(m_patternSpaceTransformation);
SkRect tileBounds = m_tilePicture->cullRect();
- return adoptRef(SkShader::MakePictureShader(adoptSkSp<SkPicture>(m_tilePicture),
+ return adoptRef(SkShader::CreatePictureShader(m_tilePicture.get(),
SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, &localMatrix, &tileBounds));
}

Powered by Google App Engine
This is Rietveld 408576698