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

Unified Diff: cc/BitmapCanvasLayerTextureUpdater.cpp

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/BitmapSkPictureCanvasLayerTextureUpdater.cpp » ('j') | cc/CCRenderingStats.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/BitmapCanvasLayerTextureUpdater.cpp
diff --git a/cc/BitmapCanvasLayerTextureUpdater.cpp b/cc/BitmapCanvasLayerTextureUpdater.cpp
index 35fb5a0eb3026e44db35f99f64045cfdaeae0995..cf33583cd218b3d858be5cec0adef0d5df2ea7eb 100644
--- a/cc/BitmapCanvasLayerTextureUpdater.cpp
+++ b/cc/BitmapCanvasLayerTextureUpdater.cpp
@@ -9,6 +9,8 @@
#include "BitmapCanvasLayerTextureUpdater.h"
+#include "CCRenderingStats.h"
+
#include "LayerPainterChromium.h"
#include "PlatformColor.h"
#include "skia/ext/platform_canvas.h"
@@ -64,6 +66,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/BitmapSkPictureCanvasLayerTextureUpdater.cpp » ('j') | cc/CCRenderingStats.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698