| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ClipPathRecorder_h | 5 #ifndef ClipPathRecorder_h |
| 6 #define ClipPathRecorder_h | 6 #define ClipPathRecorder_h |
| 7 | 7 |
| 8 #include "platform/graphics/Path.h" | 8 #include "platform/graphics/Path.h" |
| 9 #include "platform/graphics/paint/DisplayItemClient.h" | 9 #include "platform/graphics/paint/DisplayItemClient.h" |
| 10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
| 11 #include "wtf/Noncopyable.h" | 11 #include "wtf/Noncopyable.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class GraphicsContext; | 15 class GraphicsContext; |
| 16 | 16 |
| 17 class PLATFORM_EXPORT ClipPathRecorder { | 17 class PLATFORM_EXPORT ClipPathRecorder { |
| 18 USING_FAST_MALLOC(ClipPathRecorder); | 18 USING_FAST_MALLOC(ClipPathRecorder); |
| 19 WTF_MAKE_NONCOPYABLE(ClipPathRecorder); | 19 WTF_MAKE_NONCOPYABLE(ClipPathRecorder); |
| 20 public: | 20 public: |
| 21 ClipPathRecorder(GraphicsContext&, const DisplayItemClientWrapper&, const Pa
th&); | 21 ClipPathRecorder(GraphicsContext&, const DisplayItemClient&, const Path&); |
| 22 ~ClipPathRecorder(); | 22 ~ClipPathRecorder(); |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 GraphicsContext& m_context; | 25 GraphicsContext& m_context; |
| 26 DisplayItemClientWrapper m_client; | 26 const DisplayItemClient& m_client; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 } // namespace blink | 29 } // namespace blink |
| 30 | 30 |
| 31 #endif // ClipPathRecorder_h | 31 #endif // ClipPathRecorder_h |
| OLD | NEW |