| 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/paint/PaintLayerPaintingInfo.h" | 8 #include "core/paint/PaintLayerPaintingInfo.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class ClipRect; | 14 class ClipRect; |
| 15 class GraphicsContext; | 15 class GraphicsContext; |
| 16 class PaintLayer; | 16 class PaintLayer; |
| 17 class LayerClipRecorder; | 17 class LayerClipRecorder; |
| 18 | 18 |
| 19 class FilterPainter { | 19 class FilterPainter { |
| 20 STACK_ALLOCATED(); | 20 STACK_ALLOCATED(); |
| 21 public: | 21 public: |
| 22 FilterPainter(PaintLayer&, GraphicsContext&, const LayoutPoint& offsetFromRo
ot, const ClipRect&, PaintLayerPaintingInfo&, PaintLayerFlags paintFlags, Layout
Rect& rootRelativeBounds, bool& rootRelativeBoundsComputed); | 22 FilterPainter(PaintLayer&, GraphicsContext&, const LayoutPoint& offsetFromRo
ot, const ClipRect&, PaintLayerPaintingInfo&, PaintLayerFlags paintFlags); |
| 23 ~FilterPainter(); | 23 ~FilterPainter(); |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 bool m_filterInProgress; | 26 bool m_filterInProgress; |
| 27 GraphicsContext& m_context; | 27 GraphicsContext& m_context; |
| 28 std::unique_ptr<LayerClipRecorder> m_clipRecorder; | 28 std::unique_ptr<LayerClipRecorder> m_clipRecorder; |
| 29 LayoutObject* m_layoutObject; | 29 LayoutObject* m_layoutObject; |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace blink | 32 } // namespace blink |
| 33 | 33 |
| 34 #endif // FilterPainter_h | 34 #endif // FilterPainter_h |
| OLD | NEW |