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

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 opacity check 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..43fd96d68f822a67de1fab0e0c80ed7b00c03cf9 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,11 @@ public:
void setDrawLooper(PassRefPtr<SkDrawLooper>);
void clearDrawLooper();
+ // Shadow. (This will need tweaking if we use image filters for other things.)
Stephen White 2014/10/23 01:45:47 This comment doesn't really convey much. I'd remov
sugoi1 2014/10/23 17:43:17 Done.
+ SkImageFilter* imageFilter() const { return m_imageFilter.get(); }
+ void setImageFilter(PassRefPtr<SkImageFilter>);
+ void clearImageFilter();
+
// Text. (See TextModeFill & friends.)
TextDrawingModeFlags textDrawingMode() const { return m_textDrawingMode; }
void setTextDrawingMode(TextDrawingModeFlags mode) { m_textDrawingMode = mode; }
@@ -165,6 +171,7 @@ private:
RefPtr<Pattern> m_fillPattern;
RefPtr<SkDrawLooper> m_looper;
+ RefPtr<SkImageFilter> m_imageFilter;
TextDrawingModeFlags m_textDrawingMode;

Powered by Google App Engine
This is Rietveld 408576698