Chromium Code Reviews| Index: Source/platform/graphics/ContentLayerDelegate.h |
| diff --git a/Source/platform/graphics/ContentLayerDelegate.h b/Source/platform/graphics/ContentLayerDelegate.h |
| index 968e1073a4b2a35498a253982561b5a7da1314f3..92279d803a42d1e53bf655d3e5ad3240a922ac85 100644 |
| --- a/Source/platform/graphics/ContentLayerDelegate.h |
| +++ b/Source/platform/graphics/ContentLayerDelegate.h |
| @@ -36,6 +36,8 @@ class SkCanvas; |
| namespace blink { |
| class DisplayItemList; |
| +class DisplayItemTransformTree; |
| +class DisplayList; |
| class GraphicsContext; |
| class IntRect; |
| @@ -44,6 +46,9 @@ public: |
| virtual void paint(GraphicsContext&, const IntRect& clip) = 0; |
| virtual DisplayItemList* displayItemList() = 0; |
| + virtual const DisplayList* displayList() const { return 0; } |
| + virtual const DisplayItemTransformTree* transformTree() const { return 0; } |
| + |
| protected: |
| virtual ~GraphicsContextPainter() { } |
| }; |
| @@ -60,6 +65,11 @@ public: |
| void paintContents(WebDisplayItemList*, const WebRect& clip, WebContentLayerClient::PaintingControlSetting = PaintDefaultBehavior) override; |
| size_t approximateUnsharedMemoryUsage() const override; |
| + const WebDisplayList* displayList() const override; |
| + |
| + // This is only set on a root graphics layer. Alternatively, this could be set on the layer tree host. |
|
enne (OOO)
2015/07/24 18:19:24
On the LTH, yes please.
weiliangc
2015/07/24 19:17:15
It'd make sense for the global DisplayItemList to
|
| + const WebDisplayItemTransformTree* transformTree() const override; |
| + |
| private: |
| GraphicsContextPainter* m_painter; |
| }; |