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

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

Issue 669123002: Fixed Shadow blur for transparent objects (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added missing virtual layout test to TestExpectations Created 6 years, 2 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: Source/platform/graphics/GraphicsContextState.cpp
diff --git a/Source/platform/graphics/GraphicsContextState.cpp b/Source/platform/graphics/GraphicsContextState.cpp
index 657d0df5fb03942dbf1f6e356445b25f861889f6..e1f0ea73e31c80e5e52c9e26f435729e539ec9db 100644
--- a/Source/platform/graphics/GraphicsContextState.cpp
+++ b/Source/platform/graphics/GraphicsContextState.cpp
@@ -47,6 +47,7 @@ GraphicsContextState::GraphicsContextState(const GraphicsContextState& other)
, m_fillGradient(other.m_fillGradient)
, m_fillPattern(other.m_fillPattern)
, m_looper(other.m_looper)
+ , m_dropShadowImageFilter(other.m_dropShadowImageFilter)
, m_textDrawingMode(other.m_textDrawingMode)
, m_alpha(other.m_alpha)
, m_colorFilter(other.m_colorFilter)
@@ -204,6 +205,16 @@ void GraphicsContextState::clearDrawLooper()
m_fillPaint.setLooper(0);
}
+void GraphicsContextState::setDropShadowImageFilter(PassRefPtr<SkImageFilter> dropShadowImageFilter)
+{
+ m_dropShadowImageFilter = dropShadowImageFilter;
+}
+
+void GraphicsContextState::clearDropShadowImageFilter()
+{
+ m_dropShadowImageFilter.clear();
+}
+
void GraphicsContextState::setAlphaAsFloat(float alpha)
{
if (alpha < 0) {

Powered by Google App Engine
This is Rietveld 408576698