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

Unified Diff: Source/platform/graphics/GraphicsLayer.cpp

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/GraphicsLayer.cpp
diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp
index e6dbfcfa5d3ef0c9990da1cbdc53db548afa5da4..cf3780950e0a2389f001f5de9b0b6cb0aa3a9bbf 100644
--- a/Source/platform/graphics/GraphicsLayer.cpp
+++ b/Source/platform/graphics/GraphicsLayer.cpp
@@ -1112,6 +1112,11 @@ void GraphicsLayer::paint(GraphicsContext& context, const IntRect& clip)
paintGraphicsLayerContents(context, clip);
}
+void GraphicsLayer::paint(GraphicsContext& context)
+{
+ // TODO(chrishtr: fix this rect to instead derive interest rect during paint (crbug.com/486603).
+ paintGraphicsLayerContents(context, LayoutRect::infiniteIntRect());
+}
void GraphicsLayer::notifyAnimationStarted(double monotonicTime, int group)
{
@@ -1145,6 +1150,27 @@ DisplayItemList* GraphicsLayer::displayItemList()
return m_displayItemList.get();
}
+const DisplayItemTransformTree* GraphicsLayer::transformTree() const
+{
+ // Should be returning a web version of the transfor tree instead.
+ return 0;
+}
+
+void GraphicsLayer::setTransformTree(PassOwnPtr<const DisplayItemTransformTree> transformTree)
+{
+ m_transformTree = transformTree;
+}
+
+const DisplayList* GraphicsLayer::displayList() const
+{
+ return m_displayList.get();
+}
+
+void GraphicsLayer::setDisplayList(PassOwnPtr<DisplayList> displayList)
+{
+ m_displayList = displayList;
+}
+
} // namespace blink
#ifndef NDEBUG

Powered by Google App Engine
This is Rietveld 408576698