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

Unified Diff: webkit/media/webmediaplayer_impl.cc

Issue 10387202: Fix reporting of Media.AcceleratedCompositingActive when false. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/webmediaplayer_impl.cc
diff --git a/webkit/media/webmediaplayer_impl.cc b/webkit/media/webmediaplayer_impl.cc
index f45cae406be7a3bb8bbbe8bcec8c851684232598..6b21eed5a1e082732bca158f878ba3cceae1fbef 100644
--- a/webkit/media/webmediaplayer_impl.cc
+++ b/webkit/media/webmediaplayer_impl.cc
@@ -501,6 +501,12 @@ void WebMediaPlayerImpl::paint(WebCanvas* canvas,
DCHECK_EQ(main_loop_, MessageLoop::current());
DCHECK(proxy_);
+ if (!accelerated_compositing_reported_) {
+ accelerated_compositing_reported_ = true;
+ UMA_HISTOGRAM_BOOLEAN("Media.AcceleratedCompositingActive",
+ frame_->view()->isAcceleratedCompositingActive());
Ami GONE FROM CHROMIUM 2012/05/19 01:25:32 Could also just use false here (and true at the ot
scherkus (not reviewing) 2012/05/19 02:09:31 report false + comment w/ DCHECK to be safe and ca
Ami GONE FROM CHROMIUM 2012/05/19 02:48:24 Done.
+ }
+
proxy_->Paint(canvas, rect, alpha);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698