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

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: Bad rebase 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..9ef1418d037ee6a4698e50e5df06c69d1968cdbd 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContextState.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContextState.cpp
@@ -158,8 +158,8 @@ 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_strokePaint.setColorFilter(toSkSp(m_colorFilter));
+ m_fillPaint.setColorFilter(toSkSp(m_colorFilter));
f(malita) 2016/03/26 14:16:49 Can we switch m_colorFilter & m_colorFilter to sk_
tomhudson 2016/03/28 13:11:17 There's only one SkColorFilter? Typo?
f(malita) 2016/03/28 13:39:32 Yeah, I was staring at m_strokePaint and m_fillPai
}
void GraphicsContextState::setInterpolationQuality(InterpolationQuality quality)

Powered by Google App Engine
This is Rietveld 408576698