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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 2926393002: Enable vp09 codec string in WebM by default (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 // been initialized by the Zygote before this instance became a Renderer. 848 // been initialized by the Zygote before this instance became a Renderer.
849 media::InitializeMediaLibrary(); 849 media::InitializeMediaLibrary();
850 850
851 #if defined(OS_ANDROID) 851 #if defined(OS_ANDROID)
852 if (!command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode) && 852 if (!command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode) &&
853 media::MediaCodecUtil::IsMediaCodecAvailable()) { 853 media::MediaCodecUtil::IsMediaCodecAvailable()) {
854 media::EnablePlatformDecoderSupport(); 854 media::EnablePlatformDecoderSupport();
855 } 855 }
856 #endif 856 #endif
857 857
858 if (base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableHDR) ||
859 base::CommandLine::ForCurrentProcess()->HasSwitch(
860 switches::kEnableNewVp9CodecString)) {
861 media::EnableNewVp9CodecStringSupport();
862 }
863
864 memory_pressure_listener_.reset(new base::MemoryPressureListener( 858 memory_pressure_listener_.reset(new base::MemoryPressureListener(
865 base::Bind(&RenderThreadImpl::OnMemoryPressure, base::Unretained(this)), 859 base::Bind(&RenderThreadImpl::OnMemoryPressure, base::Unretained(this)),
866 base::Bind(&RenderThreadImpl::OnSyncMemoryPressure, 860 base::Bind(&RenderThreadImpl::OnSyncMemoryPressure,
867 base::Unretained(this)))); 861 base::Unretained(this))));
868 862
869 if (base::FeatureList::IsEnabled(features::kMemoryCoordinator)) { 863 if (base::FeatureList::IsEnabled(features::kMemoryCoordinator)) {
870 // Disable MemoryPressureListener when memory coordinator is enabled. 864 // Disable MemoryPressureListener when memory coordinator is enabled.
871 base::MemoryPressureListener::SetNotificationsSuppressed(true); 865 base::MemoryPressureListener::SetNotificationsSuppressed(true);
872 866
873 // TODO(bashi): Revisit how to manage the lifetime of 867 // TODO(bashi): Revisit how to manage the lifetime of
(...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after
2491 } 2485 }
2492 } 2486 }
2493 2487
2494 void RenderThreadImpl::OnRendererInterfaceRequest( 2488 void RenderThreadImpl::OnRendererInterfaceRequest(
2495 mojom::RendererAssociatedRequest request) { 2489 mojom::RendererAssociatedRequest request) {
2496 DCHECK(!renderer_binding_.is_bound()); 2490 DCHECK(!renderer_binding_.is_bound());
2497 renderer_binding_.Bind(std::move(request)); 2491 renderer_binding_.Bind(std::move(request));
2498 } 2492 }
2499 2493
2500 } // namespace content 2494 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | media/base/decode_capabilities.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698