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 PaintArtifactCompositor_h | 5 #ifndef PaintArtifactCompositor_h |
6 #define PaintArtifactCompositor_h | 6 #define PaintArtifactCompositor_h |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "platform/PlatformExport.h" | 9 #include "platform/PlatformExport.h" |
10 #include "wtf/Noncopyable.h" | 10 #include "wtf/Noncopyable.h" |
| 11 #include "wtf/OwnPtr.h" |
11 #include "wtf/Vector.h" | 12 #include "wtf/Vector.h" |
12 #include <memory> | |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 class Layer; | 15 class Layer; |
16 } | 16 } |
17 | 17 |
18 namespace gfx { | 18 namespace gfx { |
19 class Transform; | 19 class Transform; |
20 class Vector2dF; | 20 class Vector2dF; |
21 } | 21 } |
22 | 22 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 void updateInLayerListMode(const PaintArtifact&); | 55 void updateInLayerListMode(const PaintArtifact&); |
56 | 56 |
57 // Builds a leaf layer that represents a single paint chunk. | 57 // Builds a leaf layer that represents a single paint chunk. |
58 // Note: cc::Layer API assumes the layer bounds to start at (0, 0) but the b
ounding box of | 58 // Note: cc::Layer API assumes the layer bounds to start at (0, 0) but the b
ounding box of |
59 // a paint chunk does not necessarily start at (0, 0) and could even be nega
tive. Internally | 59 // a paint chunk does not necessarily start at (0, 0) and could even be nega
tive. Internally |
60 // the generated layer translates the paint chunk to align the bounding box
to (0, 0) and | 60 // the generated layer translates the paint chunk to align the bounding box
to (0, 0) and |
61 // return the actual origin of the paint chunk in output parameter layerOffs
et. | 61 // return the actual origin of the paint chunk in output parameter layerOffs
et. |
62 scoped_refptr<cc::Layer> layerForPaintChunk(const PaintArtifact&, const Pain
tChunk&, gfx::Vector2dF& layerOffset); | 62 scoped_refptr<cc::Layer> layerForPaintChunk(const PaintArtifact&, const Pain
tChunk&, gfx::Vector2dF& layerOffset); |
63 | 63 |
64 scoped_refptr<cc::Layer> m_rootLayer; | 64 scoped_refptr<cc::Layer> m_rootLayer; |
65 std::unique_ptr<WebLayer> m_webLayer; | 65 OwnPtr<WebLayer> m_webLayer; |
66 Vector<std::unique_ptr<ContentLayerClientImpl>> m_contentLayerClients; | 66 Vector<OwnPtr<ContentLayerClientImpl>> m_contentLayerClients; |
67 }; | 67 }; |
68 | 68 |
69 } // namespace blink | 69 } // namespace blink |
70 | 70 |
71 #endif // PaintArtifactCompositor_h | 71 #endif // PaintArtifactCompositor_h |
OLD | NEW |