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

Unified Diff: cc/bitmap_canvas_layer_texture_updater.cc

Issue 10982078: Adding hooks for gathering total pixels painted and rasterized stats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | cc/bitmap_skpicture_canvas_layer_texture_updater.cc » ('j') | cc/rendering_stats.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/bitmap_canvas_layer_texture_updater.cc
diff --git a/cc/bitmap_canvas_layer_texture_updater.cc b/cc/bitmap_canvas_layer_texture_updater.cc
index 6afc8a3eca56272ae4367a46421ae66e22846f2a..d9f16cf68d367e9cd8f48a40dca9f14c86dce283 100644
--- a/cc/bitmap_canvas_layer_texture_updater.cc
+++ b/cc/bitmap_canvas_layer_texture_updater.cc
@@ -7,6 +7,8 @@
#include "BitmapCanvasLayerTextureUpdater.h"
+#include "cc/rendering_stats.h"
+
#include "CCTextureUpdateQueue.h"
#include "LayerPainterChromium.h"
#include "PlatformColor.h"
@@ -63,6 +65,8 @@ void BitmapCanvasLayerTextureUpdater::prepareToUpdate(const IntRect& contentRect
m_canvas = adoptPtr(skia::CreateBitmapCanvas(m_canvasSize.width(), m_canvasSize.height(), m_opaque));
}
+ stats.totalPixelsRasterized += contentRect.width() * contentRect.height();
+
paintContents(m_canvas.get(), contentRect, contentsWidthScale, contentsHeightScale, resultingOpaqueRect, stats);
}
« no previous file with comments | « no previous file | cc/bitmap_skpicture_canvas_layer_texture_updater.cc » ('j') | cc/rendering_stats.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698