OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef FilterPainter_h | 5 #ifndef FilterPainter_h |
6 #define FilterPainter_h | 6 #define FilterPainter_h |
7 | 7 |
8 #include "core/rendering/LayerPaintingInfo.h" | 8 #include "core/rendering/LayerPaintingInfo.h" |
9 #include "wtf/OwnPtr.h" | 9 #include "wtf/OwnPtr.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class ClipRecorder; | 13 class ClipRecorder; |
14 class ClipRect; | 14 class ClipRect; |
15 class FloatRect; | |
16 class GraphicsContext; | 15 class GraphicsContext; |
17 class RenderLayer; | 16 class RenderLayer; |
18 | 17 |
19 class FilterPainter { | 18 class FilterPainter { |
20 public: | 19 public: |
21 FilterPainter(RenderLayer&, GraphicsContext*, const LayoutPoint& offsetFromR
oot, const ClipRect&, LayerPaintingInfo&, PaintLayerFlags paintFlags, LayoutRect
& rootRelativeBounds, bool& rootRelativeBoundsComputed); | 20 FilterPainter(RenderLayer&, GraphicsContext*, const LayoutPoint& offsetFromR
oot, const ClipRect&, LayerPaintingInfo&, PaintLayerFlags paintFlags, LayoutRect
& rootRelativeBounds, bool& rootRelativeBoundsComputed); |
22 ~FilterPainter(); | 21 ~FilterPainter(); |
23 | 22 |
24 private: | 23 private: |
25 bool m_filterInProgress; | 24 bool m_filterInProgress; |
26 GraphicsContext* m_context; | 25 GraphicsContext* m_context; |
27 OwnPtr<ClipRecorder> m_clipRecorder; | 26 OwnPtr<ClipRecorder> m_clipRecorder; |
28 }; | 27 }; |
29 | 28 |
30 } // namespace blink | 29 } // namespace blink |
31 | 30 |
32 #endif // FilterPainter_h | 31 #endif // FilterPainter_h |
OLD | NEW |