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

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

Issue 2723833002: WebM support for new multipart VP9 string. (Closed)
Patch Set: Rebase Created 3 years, 9 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 #include "content/renderer/shared_worker/embedded_shared_worker_stub.h" 123 #include "content/renderer/shared_worker/embedded_shared_worker_stub.h"
124 #include "gin/public/debug.h" 124 #include "gin/public/debug.h"
125 #include "gpu/GLES2/gl2extchromium.h" 125 #include "gpu/GLES2/gl2extchromium.h"
126 #include "gpu/command_buffer/client/shared_memory_limits.h" 126 #include "gpu/command_buffer/client/shared_memory_limits.h"
127 #include "gpu/ipc/client/command_buffer_proxy_impl.h" 127 #include "gpu/ipc/client/command_buffer_proxy_impl.h"
128 #include "gpu/ipc/client/gpu_channel_host.h" 128 #include "gpu/ipc/client/gpu_channel_host.h"
129 #include "ipc/ipc_channel_handle.h" 129 #include "ipc/ipc_channel_handle.h"
130 #include "ipc/ipc_channel_mojo.h" 130 #include "ipc/ipc_channel_mojo.h"
131 #include "ipc/ipc_platform_file.h" 131 #include "ipc/ipc_platform_file.h"
132 #include "media/base/media.h" 132 #include "media/base/media.h"
133 #include "media/base/media_switches.h"
133 #include "media/media_features.h" 134 #include "media/media_features.h"
134 #include "media/renderers/gpu_video_accelerator_factories.h" 135 #include "media/renderers/gpu_video_accelerator_factories.h"
135 #include "mojo/public/cpp/bindings/strong_binding.h" 136 #include "mojo/public/cpp/bindings/strong_binding.h"
136 #include "net/base/net_errors.h" 137 #include "net/base/net_errors.h"
137 #include "net/base/port_util.h" 138 #include "net/base/port_util.h"
138 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" 139 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
139 #include "net/base/url_util.h" 140 #include "net/base/url_util.h"
140 #include "ppapi/features/features.h" 141 #include "ppapi/features/features.h"
141 #include "services/service_manager/public/cpp/connector.h" 142 #include "services/service_manager/public/cpp/connector.h"
142 #include "services/service_manager/public/cpp/interface_provider.h" 143 #include "services/service_manager/public/cpp/interface_provider.h"
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 // been initialized by the Zygote before this instance became a Renderer. 803 // been initialized by the Zygote before this instance became a Renderer.
803 media::InitializeMediaLibrary(); 804 media::InitializeMediaLibrary();
804 805
805 #if defined(OS_ANDROID) 806 #if defined(OS_ANDROID)
806 if (!command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode) && 807 if (!command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode) &&
807 media::MediaCodecUtil::IsMediaCodecAvailable()) { 808 media::MediaCodecUtil::IsMediaCodecAvailable()) {
808 media::EnablePlatformDecoderSupport(); 809 media::EnablePlatformDecoderSupport();
809 } 810 }
810 #endif 811 #endif
811 812
813 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
814 switches::kEnableHDROutput) ||
815 base::CommandLine::ForCurrentProcess()->HasSwitch(
816 switches::kEnableNewVp9CodecString)) {
817 media::EnableNewVp9CodecStringSupport();
818 }
819
812 memory_pressure_listener_.reset(new base::MemoryPressureListener( 820 memory_pressure_listener_.reset(new base::MemoryPressureListener(
813 base::Bind(&RenderThreadImpl::OnMemoryPressure, base::Unretained(this)), 821 base::Bind(&RenderThreadImpl::OnMemoryPressure, base::Unretained(this)),
814 base::Bind(&RenderThreadImpl::OnSyncMemoryPressure, 822 base::Bind(&RenderThreadImpl::OnSyncMemoryPressure,
815 base::Unretained(this)))); 823 base::Unretained(this))));
816 824
817 if (base::FeatureList::IsEnabled(features::kMemoryCoordinator)) { 825 if (base::FeatureList::IsEnabled(features::kMemoryCoordinator)) {
818 // Disable MemoryPressureListener when memory coordinator is enabled. 826 // Disable MemoryPressureListener when memory coordinator is enabled.
819 base::MemoryPressureListener::SetNotificationsSuppressed(true); 827 base::MemoryPressureListener::SetNotificationsSuppressed(true);
820 828
821 // TODO(bashi): Revisit how to manage the lifetime of 829 // TODO(bashi): Revisit how to manage the lifetime of
(...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after
2380 } 2388 }
2381 } 2389 }
2382 2390
2383 void RenderThreadImpl::OnRendererInterfaceRequest( 2391 void RenderThreadImpl::OnRendererInterfaceRequest(
2384 mojom::RendererAssociatedRequest request) { 2392 mojom::RendererAssociatedRequest request) {
2385 DCHECK(!renderer_binding_.is_bound()); 2393 DCHECK(!renderer_binding_.is_bound());
2386 renderer_binding_.Bind(std::move(request)); 2394 renderer_binding_.Bind(std::move(request));
2387 } 2395 }
2388 2396
2389 } // namespace content 2397 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/render_media_client_unittest.cc ('k') | media/base/key_systems_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698