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

Unified Diff: cc/layers/content_layer.cc

Issue 282493002: cc: Remove AccelContentPaintDurationMS and related histos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit changes Created 6 years, 7 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 | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/content_layer.cc
diff --git a/cc/layers/content_layer.cc b/cc/layers/content_layer.cc
index 14a5864aeb461d8aca202becf28b8d6d193f87a8..d720501b56ddbe852f43ad86f4f9ebde149e0409 100644
--- a/cc/layers/content_layer.cc
+++ b/cc/layers/content_layer.cc
@@ -27,30 +27,10 @@ scoped_ptr<ContentLayerPainter> ContentLayerPainter::Create(
void ContentLayerPainter::Paint(SkCanvas* canvas,
const gfx::Rect& content_rect,
gfx::RectF* opaque) {
- base::TimeTicks paint_start = base::TimeTicks::HighResNow();
client_->PaintContents(canvas,
content_rect,
opaque,
ContentLayerClient::GRAPHICS_CONTEXT_ENABLED);
- base::TimeTicks paint_end = base::TimeTicks::HighResNow();
- // The start and end times might be the same if the paint was very fast or if
- // our timer granularity is poor. Treat this as a very short time duration
- // instead of none to avoid dividing by zero.
- if (paint_end == paint_start)
- paint_end += base::TimeDelta::FromMicroseconds(1);
-
- double pixels_per_sec = (content_rect.width() * content_rect.height()) /
- (paint_end - paint_start).InSecondsF();
- UMA_HISTOGRAM_CUSTOM_COUNTS("Renderer4.AccelContentPaintDurationMS",
- (paint_end - paint_start).InMilliseconds(),
- 0,
- 120,
- 30);
- UMA_HISTOGRAM_CUSTOM_COUNTS("Renderer4.AccelContentPaintMegapixPerSecond",
- pixels_per_sec / 1000000,
- 10,
- 210,
- 30);
}
scoped_refptr<ContentLayer> ContentLayer::Create(ContentLayerClient* client) {
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698