| OLD | NEW |
| 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/renderer_blink_platform_impl.h" | 5 #include "content/renderer/renderer_blink_platform_impl.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 void RendererBlinkPlatformImpl::createHTMLVideoElementCapturer( | 857 void RendererBlinkPlatformImpl::createHTMLVideoElementCapturer( |
| 858 WebMediaStream* web_media_stream, | 858 WebMediaStream* web_media_stream, |
| 859 WebMediaPlayer* web_media_player) { | 859 WebMediaPlayer* web_media_player) { |
| 860 #if BUILDFLAG(ENABLE_WEBRTC) | 860 #if BUILDFLAG(ENABLE_WEBRTC) |
| 861 DCHECK(web_media_stream); | 861 DCHECK(web_media_stream); |
| 862 DCHECK(web_media_player); | 862 DCHECK(web_media_player); |
| 863 AddVideoTrackToMediaStream( | 863 AddVideoTrackToMediaStream( |
| 864 HtmlVideoElementCapturerSource::CreateFromWebMediaPlayerImpl( | 864 HtmlVideoElementCapturerSource::CreateFromWebMediaPlayerImpl( |
| 865 web_media_player, content::RenderThread::Get()->GetIOTaskRunner()), | 865 web_media_player, content::RenderThread::Get()->GetIOTaskRunner()), |
| 866 false, // is_remote | 866 false, // is_remote |
| 867 false, // is_readonly | |
| 868 web_media_stream); | 867 web_media_stream); |
| 869 #endif | 868 #endif |
| 870 } | 869 } |
| 871 | 870 |
| 872 void RendererBlinkPlatformImpl::createHTMLAudioElementCapturer( | 871 void RendererBlinkPlatformImpl::createHTMLAudioElementCapturer( |
| 873 WebMediaStream* web_media_stream, | 872 WebMediaStream* web_media_stream, |
| 874 WebMediaPlayer* web_media_player) { | 873 WebMediaPlayer* web_media_player) { |
| 875 #if BUILDFLAG(ENABLE_WEBRTC) | 874 #if BUILDFLAG(ENABLE_WEBRTC) |
| 876 DCHECK(web_media_stream); | 875 DCHECK(web_media_stream); |
| 877 DCHECK(web_media_player); | 876 DCHECK(web_media_player); |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1272 //------------------------------------------------------------------------------ | 1271 //------------------------------------------------------------------------------ |
| 1273 void RendererBlinkPlatformImpl::requestPurgeMemory() { | 1272 void RendererBlinkPlatformImpl::requestPurgeMemory() { |
| 1274 // TODO(tasak|bashi): We should use ChildMemoryCoordinator here, but | 1273 // TODO(tasak|bashi): We should use ChildMemoryCoordinator here, but |
| 1275 // ChildMemoryCoordinator isn't always available as it's only initialized | 1274 // ChildMemoryCoordinator isn't always available as it's only initialized |
| 1276 // when kMemoryCoordinatorV0 is enabled. | 1275 // when kMemoryCoordinatorV0 is enabled. |
| 1277 // Use ChildMemoryCoordinator when memory coordinator is always enabled. | 1276 // Use ChildMemoryCoordinator when memory coordinator is always enabled. |
| 1278 base::MemoryCoordinatorClientRegistry::GetInstance()->PurgeMemory(); | 1277 base::MemoryCoordinatorClientRegistry::GetInstance()->PurgeMemory(); |
| 1279 } | 1278 } |
| 1280 | 1279 |
| 1281 } // namespace content | 1280 } // namespace content |
| OLD | NEW |