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

Side by Side Diff: content/renderer/media/webrtc/media_stream_video_webrtc_sink.cc

Issue 2623263003: Update MediaStreamTrack content-hint values. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/media/webrtc/media_stream_video_webrtc_sink.h" 5 #include "content/renderer/media/webrtc/media_stream_video_webrtc_sink.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/numerics/safe_conversions.h" 8 #include "base/numerics/safe_conversions.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 webrtc::VideoTrackInterface::ContentHint ContentHintTypeToWebRtcContentHint( 62 webrtc::VideoTrackInterface::ContentHint ContentHintTypeToWebRtcContentHint(
63 blink::WebMediaStreamTrack::ContentHintType content_hint) { 63 blink::WebMediaStreamTrack::ContentHintType content_hint) {
64 switch (content_hint) { 64 switch (content_hint) {
65 case blink::WebMediaStreamTrack::ContentHintType::None: 65 case blink::WebMediaStreamTrack::ContentHintType::None:
66 return webrtc::VideoTrackInterface::ContentHint::kNone; 66 return webrtc::VideoTrackInterface::ContentHint::kNone;
67 case blink::WebMediaStreamTrack::ContentHintType::AudioSpeech: 67 case blink::WebMediaStreamTrack::ContentHintType::AudioSpeech:
68 case blink::WebMediaStreamTrack::ContentHintType::AudioMusic: 68 case blink::WebMediaStreamTrack::ContentHintType::AudioMusic:
69 NOTREACHED(); 69 NOTREACHED();
70 break; 70 break;
71 case blink::WebMediaStreamTrack::ContentHintType::VideoFluid: 71 case blink::WebMediaStreamTrack::ContentHintType::VideoMotion:
72 return webrtc::VideoTrackInterface::ContentHint::kFluid; 72 return webrtc::VideoTrackInterface::ContentHint::kFluid;
73 case blink::WebMediaStreamTrack::ContentHintType::VideoDetailed: 73 case blink::WebMediaStreamTrack::ContentHintType::VideoDetail:
74 return webrtc::VideoTrackInterface::ContentHint::kDetailed; 74 return webrtc::VideoTrackInterface::ContentHint::kDetailed;
75 } 75 }
76 NOTREACHED(); 76 NOTREACHED();
77 return webrtc::VideoTrackInterface::ContentHint::kNone; 77 return webrtc::VideoTrackInterface::ContentHint::kNone;
78 } 78 }
79 79
80 } // namespace 80 } // namespace
81 81
82 // Simple help class used for receiving video frames on the IO-thread from a 82 // Simple help class used for receiving video frames on the IO-thread from a
83 // MediaStreamVideoTrack and forward the frames to a WebRtcVideoCapturerAdapter 83 // MediaStreamVideoTrack and forward the frames to a WebRtcVideoCapturerAdapter
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 DCHECK(thread_checker_.CalledOnValidThread()); 365 DCHECK(thread_checker_.CalledOnValidThread());
366 content::RequestRefreshFrameFromVideoTrack(connected_track()); 366 content::RequestRefreshFrameFromVideoTrack(connected_track());
367 } 367 }
368 368
369 rtc::Optional<bool> MediaStreamVideoWebRtcSink::SourceNeedsDenoisingForTesting() 369 rtc::Optional<bool> MediaStreamVideoWebRtcSink::SourceNeedsDenoisingForTesting()
370 const { 370 const {
371 return video_source_->needs_denoising(); 371 return video_source_->needs_denoising();
372 } 372 }
373 373
374 } // namespace content 374 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698