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 PaintChunk_h | 5 #ifndef PaintChunk_h |
6 #define PaintChunk_h | 6 #define PaintChunk_h |
7 | 7 |
| 8 #include <iosfwd> |
8 #include "platform/geometry/FloatRect.h" | 9 #include "platform/geometry/FloatRect.h" |
9 #include "platform/graphics/paint/DisplayItem.h" | 10 #include "platform/graphics/paint/DisplayItem.h" |
10 #include "platform/graphics/paint/PaintChunkProperties.h" | 11 #include "platform/graphics/paint/PaintChunkProperties.h" |
11 #include "wtf/Allocator.h" | 12 #include "wtf/Allocator.h" |
12 #include "wtf/Optional.h" | 13 #include "wtf/Optional.h" |
13 #include "wtf/Vector.h" | 14 #include "wtf/Vector.h" |
14 #include <iosfwd> | |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 | 17 |
18 // A contiguous sequence of drawings with common paint properties. | 18 // A contiguous sequence of drawings with common paint properties. |
19 // | 19 // |
20 // This is expected to be owned by the paint artifact which also owns the | 20 // This is expected to be owned by the paint artifact which also owns the |
21 // related drawings. | 21 // related drawings. |
22 // | 22 // |
23 // This is a Slimming Paint v2 class. | 23 // This is a Slimming Paint v2 class. |
24 struct PaintChunk { | 24 struct PaintChunk { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 const_cast<Vector<PaintChunk>&>(chunks), index); | 123 const_cast<Vector<PaintChunk>&>(chunks), index); |
124 } | 124 } |
125 | 125 |
126 // Redeclared here to avoid ODR issues. | 126 // Redeclared here to avoid ODR issues. |
127 // See platform/testing/PaintPrinters.h. | 127 // See platform/testing/PaintPrinters.h. |
128 void PrintTo(const PaintChunk&, std::ostream*); | 128 void PrintTo(const PaintChunk&, std::ostream*); |
129 | 129 |
130 } // namespace blink | 130 } // namespace blink |
131 | 131 |
132 #endif // PaintChunk_h | 132 #endif // PaintChunk_h |
OLD | NEW |