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

Unified Diff: webkit/media/webmediaplayer_impl.cc

Issue 9041016: Disable accelerated compositing for audio-only <video> tags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 4753202695a03082af06fa4b108d5bc081b4c19c..1de4acbe5f7bd8dbb6d277e9d29becf0011b6f62 100644
--- a/webkit/media/webmediaplayer_impl.cc
+++ b/webkit/media/webmediaplayer_impl.cc
@@ -758,6 +758,8 @@ void WebMediaPlayerImpl::OnPipelineInitialize(PipelineStatus status) {
if (hasVideo()) {
UMA_HISTOGRAM_BOOLEAN("Media.AcceleratedCompositingActive",
is_accelerated_compositing_active_);
+ } else {
+ GetClient()->disableAcceleratedCompositing();
}
if (pipeline_->IsLocalSource())
« 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