Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Unified Diff: Source/platform/graphics/ContentLayerDelegate.h

Issue 1238123004: Slimming Paint phase 2 compositing algorithm plumbing & skeleton display list API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
};

Powered by Google App Engine
This is Rietveld 408576698