summaryrefslogtreecommitdiffstats
path: root/cc/layers/content_layer.cc
diff options
context:
space:
mode:
authorsohan.jyoti@samsung.com <sohan.jyoti@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-13 20:52:49 +0000
committersohan.jyoti@samsung.com <sohan.jyoti@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-13 20:52:49 +0000
commit26ba8594228d2f23f1faf4dfc59fd1f580ca9b49 (patch)
treec72f76b880d1176d90b51cc05a0c7866480476c2 /cc/layers/content_layer.cc
parent2c6002cefa3a81058d9538ee755f57479178c971 (diff)
downloadchromium_src-26ba8594228d2f23f1faf4dfc59fd1f580ca9b49.zip
chromium_src-26ba8594228d2f23f1faf4dfc59fd1f580ca9b49.tar.gz
chromium_src-26ba8594228d2f23f1faf4dfc59fd1f580ca9b49.tar.bz2
cc: Remove AccelContentPaintDurationMS and related histos.
BUG=153644 Review URL: https://codereview.chromium.org/282493002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270193 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers/content_layer.cc')
-rw-r--r--cc/layers/content_layer.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/cc/layers/content_layer.cc b/cc/layers/content_layer.cc
index 14a5864..d720501 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) {