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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FilterPainter_h
6 #define FilterPainter_h
7
8 namespace blink {
9
10 class FloatRect;
11 class GraphicsContext;
12 class RenderLayer;
13
14 class FilterPainter {
15 public:
16 FilterPainter(RenderLayer& layer) : m_renderLayer(layer) { }
17 bool beginFilterEffect(GraphicsContext*, const FloatRect& filterBoxRect);
18 void endFilterEffect(GraphicsContext*);
19
20 private:
21 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
22 };
23
24 } // namespace blink
25
26 #endif // FilterPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698