| 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 ScopedPaintChunkProperties_h | 5 #ifndef ScopedPaintChunkProperties_h |
| 6 #define ScopedPaintChunkProperties_h | 6 #define ScopedPaintChunkProperties_h |
| 7 | 7 |
| 8 #include "platform/graphics/paint/DisplayItem.h" | 8 #include "platform/graphics/paint/DisplayItem.h" |
| 9 #include "platform/graphics/paint/PaintChunk.h" | 9 #include "platform/graphics/paint/PaintChunk.h" |
| 10 #include "platform/graphics/paint/PaintChunkProperties.h" | 10 #include "platform/graphics/paint/PaintChunkProperties.h" |
| 11 #include "platform/graphics/paint/PaintController.h" | 11 #include "platform/graphics/paint/PaintController.h" |
| 12 #include "wtf/Allocator.h" | 12 #include "platform/wtf/Allocator.h" |
| 13 #include "wtf/Noncopyable.h" | 13 #include "platform/wtf/Noncopyable.h" |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 class ScopedPaintChunkProperties { | 17 class ScopedPaintChunkProperties { |
| 18 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 18 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 19 WTF_MAKE_NONCOPYABLE(ScopedPaintChunkProperties); | 19 WTF_MAKE_NONCOPYABLE(ScopedPaintChunkProperties); |
| 20 | 20 |
| 21 public: | 21 public: |
| 22 ScopedPaintChunkProperties(PaintController& paintController, | 22 ScopedPaintChunkProperties(PaintController& paintController, |
| 23 const DisplayItemClient& client, | 23 const DisplayItemClient& client, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 51 } | 51 } |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 PaintController& m_paintController; | 54 PaintController& m_paintController; |
| 55 PaintChunkProperties m_previousProperties; | 55 PaintChunkProperties m_previousProperties; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace blink | 58 } // namespace blink |
| 59 | 59 |
| 60 #endif // ScopedPaintChunkProperties_h | 60 #endif // ScopedPaintChunkProperties_h |
| OLD | NEW |