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

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

Issue 713823005: Factor painting code for filters out of FilterEffectRenderer into FilterPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
Index: Source/core/paint/FilterPainter.h
diff --git a/Source/core/paint/FilterPainter.h b/Source/core/paint/FilterPainter.h
new file mode 100644
index 0000000000000000000000000000000000000000..513d492d6e56d758c6a8b5a177c6268fafe26381
--- /dev/null
+++ b/Source/core/paint/FilterPainter.h
@@ -0,0 +1,26 @@
+// Copyright 2014 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 FilterPainter_h
+#define FilterPainter_h
+
+namespace blink {
+
+class FloatRect;
+class GraphicsContext;
+class RenderLayer;
+
+class FilterPainter {
+public:
+ FilterPainter(RenderLayer& layer) : m_renderLayer(layer) { }
+ bool beginFilterEffect(GraphicsContext*, const FloatRect& filterBoxRect);
+ void endFilterEffect(GraphicsContext*);
+
+private:
+ RenderLayer& m_renderLayer;
Stephen White 2014/11/11 03:53:24 Since all we need out of the RenderLayer is m_rend
chrishtr 2014/11/11 22:21:37 This is the standard pattern for these painting cl
chrishtr 2014/11/11 22:21:37 This is the standard pattern for these painting cl
+};
+
+} // namespace blink
+
+#endif // FilterPainter_h

Powered by Google App Engine
This is Rietveld 408576698