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

Unified Diff: cc/rendering_stats.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: Rebase 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/rendering_stats.cc
diff --git a/cc/rendering_stats.cc b/cc/rendering_stats.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0f28e4c7f5538955eb8d60b5cb3a094060198876
--- /dev/null
+++ b/cc/rendering_stats.cc
@@ -0,0 +1,20 @@
+#include "config.h"
jamesr 2012/10/29 23:38:49 you need a copyright header
hartmanng 2012/10/30 20:10:51 Done.
+#include "cc/rendering_stats.h"
jamesr 2012/10/29 23:38:49 newline before this #include, please
hartmanng 2012/10/30 20:10:51 Done.
+
+namespace cc {
+
+RenderingStats::RenderingStats()
+ : numAnimationFrames(0)
+ , numFramesSentToScreen(0)
jamesr 2012/10/29 23:38:49 bad indentation - if you want WebKit style, line t
hartmanng 2012/10/30 20:10:51 Done.
+ , droppedFrameCount(0)
+ , totalPaintTimeInSeconds(0)
+ , totalRasterizeTimeInSeconds(0)
+ , totalCommitTimeInSeconds(0)
+ , totalCommitCount(0)
+ , totalPixelsPainted(0)
+ , totalPixelsRasterized(0)
+ , numImplThreadScrolls(0)
+ , numMainThreadScrolls(0)
+ {
jamesr 2012/10/29 23:38:49 bad indentation
hartmanng 2012/10/30 20:10:51 Done.
+ }
+} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698