| 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 "wtf/Allocator.h" | 11 #include "platform/wtf/Allocator.h" |
| 12 #include "wtf/Noncopyable.h" | 12 #include "platform/wtf/Noncopyable.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class FloatClipRecorder { | 16 class FloatClipRecorder { |
| 17 USING_FAST_MALLOC(FloatClipRecorder); | 17 USING_FAST_MALLOC(FloatClipRecorder); |
| 18 WTF_MAKE_NONCOPYABLE(FloatClipRecorder); | 18 WTF_MAKE_NONCOPYABLE(FloatClipRecorder); |
| 19 | 19 |
| 20 public: | 20 public: |
| 21 FloatClipRecorder(GraphicsContext&, | 21 FloatClipRecorder(GraphicsContext&, |
| 22 const DisplayItemClient&, | 22 const DisplayItemClient&, |
| 23 PaintPhase, | 23 PaintPhase, |
| 24 const FloatRect&); | 24 const FloatRect&); |
| 25 | 25 |
| 26 ~FloatClipRecorder(); | 26 ~FloatClipRecorder(); |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 GraphicsContext& context_; | 29 GraphicsContext& context_; |
| 30 const DisplayItemClient& client_; | 30 const DisplayItemClient& client_; |
| 31 DisplayItem::Type clip_type_; | 31 DisplayItem::Type clip_type_; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace blink | 34 } // namespace blink |
| 35 | 35 |
| 36 #endif // FloatClipRecorder_h | 36 #endif // FloatClipRecorder_h |
| OLD | NEW |