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

Unified Diff: cc/CCLayerSorter.cpp

Issue 10942040: Fix CC*Renderer and CC*LayerImpl to compile with Clang (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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: cc/CCLayerSorter.cpp
diff --git a/cc/CCLayerSorter.cpp b/cc/CCLayerSorter.cpp
index 1b643f5f11c34423c746f049652ff77f06e8d6e0..cf8577797211258877e2df9c020e41952027e814 100644
--- a/cc/CCLayerSorter.cpp
+++ b/cc/CCLayerSorter.cpp
@@ -62,6 +62,25 @@ static bool edgeEdgeTest(const FloatPoint& a, const FloatPoint& b, const FloatPo
return true;
}
+CCLayerSorter::GraphNode::GraphNode(CCLayerImpl* cclayer)
+ : layer(cclayer)
+ , incomingEdgeWeight(0)
+{
+}
+
+CCLayerSorter::GraphNode::~GraphNode()
+{
+}
+
+CCLayerSorter::CCLayerSorter()
+ : m_zRange(0)
+{
+}
+
+CCLayerSorter::~CCLayerSorter()
+{
+}
+
// Checks whether layer "a" draws on top of layer "b". The weight value returned is an indication of
// the maximum z-depth difference between the layers or zero if the layers are found to be intesecting
// (some features are in front and some are behind).
@@ -132,6 +151,10 @@ CCLayerSorter::ABCompareResult CCLayerSorter::checkOverlap(LayerShape* a, LayerS
return BBeforeA;
}
+CCLayerSorter::LayerShape::LayerShape()
+{
+}
+
CCLayerSorter::LayerShape::LayerShape(float width, float height, const WebTransformationMatrix& drawTransform)
{
FloatQuad layerQuad(FloatRect(0, 0, width, height));
« no previous file with comments | « cc/CCLayerSorter.h ('k') | cc/CCLayerTreeHost.h » ('j') | cc/CCTiledLayerImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698