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

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

Issue 992213002: [S.P.] Move filter painting to SVGFilterPainter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rename setter too Created 5 years, 9 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/paint/SVGClipPainter.h ('k') | Source/core/paint/SVGFilterPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGFilterPainter.h
diff --git a/Source/core/paint/SVGFilterPainter.h b/Source/core/paint/SVGFilterPainter.h
new file mode 100644
index 0000000000000000000000000000000000000000..0e7dc0d02d55b661bcc0ce5582797f5ae4acbe93
--- /dev/null
+++ b/Source/core/paint/SVGFilterPainter.h
@@ -0,0 +1,29 @@
+// 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 SVGFilterPainter_h
+#define SVGFilterPainter_h
+
+namespace blink {
+
+class GraphicsContext;
+class LayoutObject;
+class LayoutSVGResourceFilter;
+
+class SVGFilterPainter {
+public:
+ SVGFilterPainter(LayoutSVGResourceFilter& filter) : m_filter(filter) { }
+
+ // Returns the context that should be used to paint the filter contents, or
+ // null if the content should not be recorded.
+ GraphicsContext* prepareEffect(LayoutObject*, GraphicsContext*);
+ void finishEffect(LayoutObject*, GraphicsContext*);
+
+private:
+ LayoutSVGResourceFilter& m_filter;
+};
+
+} // namespace blink
+
+#endif // SVGFilterPainter_h
« no previous file with comments | « Source/core/paint/SVGClipPainter.h ('k') | Source/core/paint/SVGFilterPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698