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 FloatClipRecorder_h | 5 #ifndef FloatClipRecorder_h |
6 #define FloatClipRecorder_h | 6 #define FloatClipRecorder_h |
7 | 7 |
8 #include "core/paint/PaintPhase.h" | 8 #include "core/paint/PaintPhase.h" |
9 #include "platform/geometry/FloatRect.h" | 9 #include "platform/geometry/FloatRect.h" |
10 #include "platform/graphics/paint/DisplayItem.h" | 10 #include "platform/graphics/paint/DisplayItem.h" |
| 11 #include "platform/graphics/paint/PaintStash.h" |
11 #include "wtf/Allocator.h" | 12 #include "wtf/Allocator.h" |
12 #include "wtf/Noncopyable.h" | 13 #include "wtf/Noncopyable.h" |
13 | 14 |
14 namespace blink { | 15 namespace blink { |
15 | 16 |
16 class FloatClipRecorder { | 17 class FloatClipRecorder { |
17 USING_FAST_MALLOC(FloatClipRecorder); | 18 USING_FAST_MALLOC(FloatClipRecorder); |
18 WTF_MAKE_NONCOPYABLE(FloatClipRecorder); | 19 WTF_MAKE_NONCOPYABLE(FloatClipRecorder); |
19 | 20 |
20 public: | 21 public: |
21 FloatClipRecorder(GraphicsContext&, | 22 FloatClipRecorder(GraphicsContext&, |
22 const DisplayItemClient&, | |
23 PaintPhase, | 23 PaintPhase, |
24 const FloatRect&); | 24 const FloatRect&, |
| 25 const LayoutRect& visualRect, |
| 26 const WTF::String& debugName, |
| 27 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize); |
25 | 28 |
26 ~FloatClipRecorder(); | 29 ~FloatClipRecorder(); |
27 | 30 |
28 private: | 31 private: |
29 GraphicsContext& m_context; | 32 GraphicsContext& m_context; |
30 const DisplayItemClient& m_client; | 33 PaintStash m_client; |
31 DisplayItem::Type m_clipType; | 34 DisplayItem::Type m_clipType; |
32 }; | 35 }; |
33 | 36 |
34 } // namespace blink | 37 } // namespace blink |
35 | 38 |
36 #endif // FloatClipRecorder_h | 39 #endif // FloatClipRecorder_h |
OLD | NEW |