Chromium Code Reviews| Index: Source/platform/graphics/GraphicsContext.h |
| diff --git a/Source/platform/graphics/GraphicsContext.h b/Source/platform/graphics/GraphicsContext.h |
| index 17a03166bca364f1c9c74ccd76028d6203f764d7..3a365a5e6cc3c136be441d56d8897115986fa49f 100644 |
| --- a/Source/platform/graphics/GraphicsContext.h |
| +++ b/Source/platform/graphics/GraphicsContext.h |
| @@ -33,7 +33,7 @@ |
| #include "platform/fonts/Font.h" |
| #include "platform/geometry/FloatRect.h" |
| #include "platform/graphics/DashArray.h" |
| -#include "platform/graphics/DrawLooper.h" |
| +#include "platform/graphics/DrawLooperBuilder.h" |
| #include "platform/graphics/ImageBufferSurface.h" |
| #include "platform/graphics/ImageOrientation.h" |
| #include "platform/graphics/GraphicsContextAnnotation.h" |
| @@ -314,13 +314,14 @@ public: |
| bool hasShadow() const; |
| void setShadow(const FloatSize& offset, float blur, const Color&, |
| - DrawLooper::ShadowTransformMode = DrawLooper::ShadowRespectsTransforms, |
| - DrawLooper::ShadowAlphaMode = DrawLooper::ShadowRespectsAlpha); |
| + DrawLooperBuilder::ShadowTransformMode = DrawLooperBuilder::ShadowRespectsTransforms, |
| + DrawLooperBuilder::ShadowAlphaMode = DrawLooperBuilder::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(const DrawLooper&); |
| + // The builder passed into this method will be destroyed. |
| + void setDrawLooper(PassOwnPtr<DrawLooperBuilder>); |
|
Stephen Chennney
2014/03/03 13:40:48
The problem was that this should be a PassRefPtr,
Dominik Grewe
2014/03/03 13:45:23
The result of calling detachDrawLooper on the argu
|
| void clearDrawLooper(); |
| void drawFocusRing(const Vector<IntRect>&, int width, int offset, const Color&); |