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

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: Rebase to ToT 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
« no previous file with comments | « cc/overdraw_metrics.h ('k') | cc/prioritized_texture.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/overdraw_metrics.cc
diff --git a/cc/overdraw_metrics.cc b/cc/overdraw_metrics.cc
index 2d44bb1244e4c59daa8869cbe640192c017e590d..14d36ceae4a405e55789a3f69af7d6b3434ada48 100644
--- a/cc/overdraw_metrics.cc
+++ b/cc/overdraw_metrics.cc
@@ -67,10 +67,10 @@ void OverdrawMetrics::didPaint(const IntRect& paintedRect)
m_pixelsPainted += static_cast<float>(paintedRect.width()) * paintedRect.height();
}
-void OverdrawMetrics::didCullTileForUpload()
+void OverdrawMetrics::didCullTilesForUpload(int count)
{
if (m_recordMetricsForFrame)
- ++m_tilesCulledForUpload;
+ m_tilesCulledForUpload += count;
}
void OverdrawMetrics::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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698