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

Unified Diff: cc/overdraw_metrics.cc

Issue 11028132: cc: The recent texture manager bug uncovered some unnecessary code (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Make haveTexturesForTilesConst Created 8 years, 2 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/overdraw_metrics.cc
diff --git a/cc/overdraw_metrics.cc b/cc/overdraw_metrics.cc
index 8c43dece0fbfac26d3ae2777384d2cf5530d2e5f..692de56e275036583d1e8f454097e25e800578f0 100644
--- a/cc/overdraw_metrics.cc
+++ b/cc/overdraw_metrics.cc
@@ -67,10 +67,10 @@ void CCOverdrawMetrics::didPaint(const IntRect& paintedRect)
m_pixelsPainted += static_cast<float>(paintedRect.width()) * paintedRect.height();
}
-void CCOverdrawMetrics::didCullTileForUpload()
+void CCOverdrawMetrics::didCullTilesForUpload(int count)
{
if (m_recordMetricsForFrame)
- ++m_tilesCulledForUpload;
+ m_tilesCulledForUpload += count;
}
void CCOverdrawMetrics::didUpload(const WebTransformationMatrix& transformToTarget, const IntRect& uploadRect, const IntRect& opaqueRect)
« no previous file with comments | « cc/overdraw_metrics.h ('k') | cc/prioritized_texture.h » ('j') | cc/tiled_layer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698