Index: Source/core/paint/SVGMaskPainter.h |
diff --git a/Source/core/paint/SVGMaskPainter.h b/Source/core/paint/SVGMaskPainter.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c1a06ae41b247518ceccdee5368530537f9491da |
--- /dev/null |
+++ b/Source/core/paint/SVGMaskPainter.h |
@@ -0,0 +1,36 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef SVGMaskPainter_h |
+#define SVGMaskPainter_h |
+ |
+#include "platform/geometry/FloatRect.h" |
+#include "platform/graphics/paint/DisplayItem.h" |
+ |
+namespace blink { |
+ |
+struct PaintInfo; |
+class FloatPoint; |
+class GraphicsContext; |
+class Path; |
+class LayoutObject; |
+class LayoutSVGResourceMasker; |
+class LayoutSVGShape; |
fs
2015/03/03 12:04:37
Looks like this list could be pruned a bit.
Erik Dahlström (inactive)
2015/03/03 13:08:58
Done.
|
+ |
+class SVGMaskPainter { |
+public: |
+ SVGMaskPainter(LayoutSVGResourceMasker& mask) : m_mask(mask) { } |
+ |
+ bool prepareEffect(LayoutObject*, GraphicsContext*); |
+ void finishEffect(LayoutObject*, GraphicsContext*); |
+ |
+private: |
+ void drawMaskForRenderer(GraphicsContext*, DisplayItemClient, const FloatRect& targetBoundingBox); |
+ |
+ LayoutSVGResourceMasker& m_mask; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // SVGShapePainter_h |