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

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

Issue 2339193002: Wip - cl for implemening VideoTrackSource::ApplyConstraints(constraints, VideoTrack) and adopt safe…
Patch Set: Created 4 years, 3 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/renderer_blink_platform_impl.h" 5 #include "content/renderer/renderer_blink_platform_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 923
924 // static 924 // static
925 bool RendererBlinkPlatformImpl::SetSandboxEnabledForTesting(bool enable) { 925 bool RendererBlinkPlatformImpl::SetSandboxEnabledForTesting(bool enable) {
926 bool was_enabled = g_sandbox_enabled; 926 bool was_enabled = g_sandbox_enabled;
927 g_sandbox_enabled = enable; 927 g_sandbox_enabled = enable;
928 return was_enabled; 928 return was_enabled;
929 } 929 }
930 930
931 //------------------------------------------------------------------------------ 931 //------------------------------------------------------------------------------
932 932
933 WebCanvasCaptureHandler* RendererBlinkPlatformImpl::createCanvasCaptureHandler( 933 WebCanvasCaptureHandler* RendererBlinkPlatformImpl::createCanvasCaptureHandler() {
934 const WebSize& size,
935 double frame_rate,
936 WebMediaStreamTrack* track) {
937 #if defined(ENABLE_WEBRTC) 934 #if defined(ENABLE_WEBRTC)
938 return CanvasCaptureHandler::CreateCanvasCaptureHandler( 935 return CanvasCaptureHandler::CreateCanvasCaptureHandler(
939 size, frame_rate, RenderThread::Get()->GetIOTaskRunner(), track); 936 RenderThread::Get()->GetIOMessageLoopProxy());
940 #else 937 #else
941 return nullptr; 938 return nullptr;
942 #endif // defined(ENABLE_WEBRTC) 939 #endif // defined(ENABLE_WEBRTC)
943 } 940 }
944 941
945 //------------------------------------------------------------------------------ 942 //------------------------------------------------------------------------------
946 943
947 void RendererBlinkPlatformImpl::createHTMLVideoElementCapturer( 944 void RendererBlinkPlatformImpl::createHTMLVideoElementCapturer(
948 WebMediaStream* web_media_stream, 945 WebMediaStream* web_media_stream,
949 WebMediaPlayer* web_media_player) { 946 WebMediaPlayer* web_media_player) {
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 return &trial_token_validator_; 1333 return &trial_token_validator_;
1337 } 1334 }
1338 1335
1339 void RendererBlinkPlatformImpl::workerContextCreated( 1336 void RendererBlinkPlatformImpl::workerContextCreated(
1340 const v8::Local<v8::Context>& worker) { 1337 const v8::Local<v8::Context>& worker) {
1341 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( 1338 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread(
1342 worker); 1339 worker);
1343 } 1340 }
1344 1341
1345 } // namespace content 1342 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698