Index: Source/core/platform/graphics/GraphicsContext.h |
diff --git a/Source/core/platform/graphics/GraphicsContext.h b/Source/core/platform/graphics/GraphicsContext.h |
index 3ae5ac443d8b01c42d7bbb7c9f48917daecd7d18..858f995e8cbbb9a2df6d40b2a668652efc046bf8 100644 |
--- a/Source/core/platform/graphics/GraphicsContext.h |
+++ b/Source/core/platform/graphics/GraphicsContext.h |
@@ -31,6 +31,7 @@ |
#include "core/platform/chromium/TraceEvent.h" |
#include "core/platform/graphics/DashArray.h" |
+#include "core/platform/graphics/DrawLooper.h" |
#include "core/platform/graphics/FloatRect.h" |
#include "core/platform/graphics/Font.h" |
#include "core/platform/graphics/GraphicsContextState.h" |
@@ -322,10 +323,14 @@ public: |
void beginLayerClippedToImage(const FloatRect&, const ImageBuffer*); |
bool hasShadow() const; |
- void setShadow(const FloatSize&, float blur, const Color&, ColorSpace); |
- |
- bool getShadow(FloatSize&, float&, Color&, ColorSpace&) const; |
- void clearShadow(); |
+ void setShadow(const FloatSize& offset, float blur, const Color&, |
+ DrawLooper::ShadowAlphaMode = DrawLooper::ShadowRespectsAlpha); |
+ void clearShadow() { clearDrawLooper(); } |
+ |
+ // It is assumed that this draw looper is used only for shadows |
+ // (i.e. a draw looper is set if and only if there is a shadow). |
+ void setDrawLooper(DrawLooper&); |
+ void clearDrawLooper(); |
void drawFocusRing(const Vector<IntRect>&, int width, int offset, const Color&); |
void drawFocusRing(const Path&, int width, int offset, const Color&); |