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

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

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.h
diff --git a/Source/platform/graphics/GraphicsContextState.h b/Source/platform/graphics/GraphicsContextState.h
index 9dbbcfc305e26c424a23ca8640dbad486ae8027f..acfe0a076c139bcca9044497c8b01d5522c18783 100644
--- a/Source/platform/graphics/GraphicsContextState.h
+++ b/Source/platform/graphics/GraphicsContextState.h
@@ -36,6 +36,7 @@
#include "platform/graphics/Pattern.h"
#include "platform/graphics/StrokeData.h"
#include "third_party/skia/include/core/SkColorFilter.h"
+#include "third_party/skia/include/core/SkImageFilter.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/RefPtr.h"
@@ -110,6 +111,10 @@ public:
void setDrawLooper(PassRefPtr<SkDrawLooper>);
void clearDrawLooper();
+ SkImageFilter* dropShadowImageFilter() const { return m_dropShadowImageFilter.get(); }
+ void setDropShadowImageFilter(PassRefPtr<SkImageFilter>);
+ void clearDropShadowImageFilter();
+
// Text. (See TextModeFill & friends.)
TextDrawingModeFlags textDrawingMode() const { return m_textDrawingMode; }
void setTextDrawingMode(TextDrawingModeFlags mode) { m_textDrawingMode = mode; }
@@ -165,6 +170,7 @@ private:
RefPtr<Pattern> m_fillPattern;
RefPtr<SkDrawLooper> m_looper;
+ RefPtr<SkImageFilter> m_dropShadowImageFilter;
TextDrawingModeFlags m_textDrawingMode;

Powered by Google App Engine
This is Rietveld 408576698