Chromium Code Reviews| 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; |