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

Unified Diff: Source/core/paint/SVGMaskPainter.h

Issue 967543002: [S.P.] Move svg mask painting to SVGMaskPainter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review fixes Created 5 years, 10 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
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourceMasker.cpp ('k') | Source/core/paint/SVGMaskPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d06a9517045523c596ecb6b499ba706a39cb0d29
--- /dev/null
+++ b/Source/core/paint/SVGMaskPainter.h
@@ -0,0 +1,32 @@
+// 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 {
+
+class GraphicsContext;
+class LayoutObject;
+class LayoutSVGResourceMasker;
+
+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
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourceMasker.cpp ('k') | Source/core/paint/SVGMaskPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698