[chromium] Allow us to disable overdraw metrics when tracing is off
[WebKit-https.git] / Source / WebCore / platform / graphics / chromium / cc / CCLayerTreeHostImpl.cpp
index ad892f28f45fc7b9d42b0646d984b8fc4615966e..07812e21c1c9ad166b1885d9d89e884e57a84059 100644 (file)
@@ -280,7 +280,9 @@ void CCLayerTreeHostImpl::calculateRenderPasses(CCRenderPassList& passes, CCLaye
         scissorRect = enclosingIntRect(m_rootDamageRect);
     else
         scissorRect = IntRect(IntPoint(), viewportSize());
-    CCOcclusionTrackerImpl occlusionTracker(scissorRect);
+
+    bool recordMetricsForFrame = true; // FIXME: In the future, disable this when about:tracing is off.
+    CCOcclusionTrackerImpl occlusionTracker(scissorRect, recordMetricsForFrame);
 
     // Add quads to the Render passes in FrontToBack order to allow for testing occlusion and performing culling during the tree walk.
     typedef CCLayerIterator<CCLayerImpl, Vector<CCLayerImpl*>, CCRenderSurface, CCLayerIteratorActions::FrontToBack> CCLayerIteratorType;