Chromium Code Reviews| 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/OwnPtr.h" |
| 12 #include "wtf/Vector.h" | 12 #include "wtf/Vector.h" |
| 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 } | 21 } |
| 21 | 22 |
| 22 namespace blink { | 23 namespace blink { |
| 23 | 24 |
| 24 class PaintArtifact; | 25 class PaintArtifact; |
| 25 class WebLayer; | 26 class WebLayer; |
| 26 struct PaintChunk; | 27 struct PaintChunk; |
| 27 | 28 |
| 28 // Responsible for managing compositing in terms of a PaintArtifact. | 29 // Responsible for managing compositing in terms of a PaintArtifact. |
| 29 // | 30 // |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 46 cc::Layer* rootLayer() const { return m_rootLayer.get(); } | 47 cc::Layer* rootLayer() const { return m_rootLayer.get(); } |
| 47 | 48 |
| 48 // Wraps rootLayer(), so that it can be attached as a child of another | 49 // Wraps rootLayer(), so that it can be attached as a child of another |
| 49 // WebLayer. | 50 // WebLayer. |
| 50 WebLayer* getWebLayer() const { return m_webLayer.get(); } | 51 WebLayer* getWebLayer() const { return m_webLayer.get(); } |
| 51 | 52 |
| 52 private: | 53 private: |
| 53 class ContentLayerClientImpl; | 54 class ContentLayerClientImpl; |
| 54 | 55 |
| 55 // Builds a leaf layer that represents a single paint chunk. | 56 // Builds a leaf layer that represents a single paint chunk. |
| 56 scoped_refptr<cc::Layer> layerForPaintChunk(const PaintArtifact&, const Pain tChunk&, gfx::Transform); | 57 scoped_refptr<cc::Layer> layerForPaintChunk(const PaintArtifact&, const Pain tChunk&, gfx::Vector2dF& layerOffset); |
|
chrishtr
2016/06/09 02:20:05
Please document the last parameter a little.
| |
| 57 | 58 |
| 58 scoped_refptr<cc::Layer> m_rootLayer; | 59 scoped_refptr<cc::Layer> m_rootLayer; |
| 59 OwnPtr<WebLayer> m_webLayer; | 60 OwnPtr<WebLayer> m_webLayer; |
| 60 Vector<OwnPtr<ContentLayerClientImpl>> m_contentLayerClients; | 61 Vector<OwnPtr<ContentLayerClientImpl>> m_contentLayerClients; |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 } // namespace blink | 64 } // namespace blink |
| 64 | 65 |
| 65 #endif // PaintArtifactCompositor_h | 66 #endif // PaintArtifactCompositor_h |
| OLD | NEW |