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

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

Issue 1829093002: Use sk_sp-based APIs for SkColorFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to reviews 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/GraphicsContextState.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContextState.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContextState.cpp
index 4db36e0669fb1abb4f15f38d44a536775735ece4..7725a54240b67090ef84f8443aa0bc8328843e27 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContextState.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContextState.cpp
@@ -157,9 +157,9 @@ void GraphicsContextState::setLineDash(const DashArray& dashes, float dashOffset
void GraphicsContextState::setColorFilter(PassRefPtr<SkColorFilter> colorFilter)
{
- m_colorFilter = colorFilter;
- m_strokePaint.setColorFilter(m_colorFilter.get());
- m_fillPaint.setColorFilter(m_colorFilter.get());
+ m_colorFilter = toSkSp(colorFilter);
f(malita) 2016/03/28 13:39:32 Hmm, looking at this code I wonder why we need m_c
+ m_strokePaint.setColorFilter(m_colorFilter);
+ m_fillPaint.setColorFilter(m_colorFilter);
}
void GraphicsContextState::setInterpolationQuality(InterpolationQuality quality)

Powered by Google App Engine
This is Rietveld 408576698