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

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

Issue 1779833002: Switch Blink SkShader clients to sk_sp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after MakePictureShader constness change 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/Pattern.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Pattern.cpp b/third_party/WebKit/Source/platform/graphics/Pattern.cpp
index ce773d59b50118c1770aa8b67cf971dfbafa1aa7..ae725b42a0970a71b42c835436b3c9bd12bd9e30 100644
--- a/third_party/WebKit/Source/platform/graphics/Pattern.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Pattern.cpp
@@ -65,7 +65,7 @@ void Pattern::applyToPaint(SkPaint& paint)
m_pattern = createShader();
}
- paint.setShader(m_pattern.get());
+ paint.setShader(m_pattern);
}
void Pattern::setPatternSpaceTransform(const AffineTransform& patternSpaceTransformation)
@@ -74,7 +74,7 @@ void Pattern::setPatternSpaceTransform(const AffineTransform& patternSpaceTransf
return;
m_patternSpaceTransformation = patternSpaceTransformation;
- m_pattern.clear();
+ m_pattern.reset();
}
void Pattern::adjustExternalMemoryAllocated(int64_t delta)
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Pattern.h ('k') | third_party/WebKit/Source/platform/graphics/PicturePattern.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698