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

Side by Side Diff: third_party/WebKit/Source/platform/mediastream/MediaStreamComponent.cpp

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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Ericsson AB. All rights reserved. 2 * Copyright (C) 2011 Ericsson AB. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 void MediaStreamComponent::setContentHint( 100 void MediaStreamComponent::setContentHint(
101 WebMediaStreamTrack::ContentHintType hint) { 101 WebMediaStreamTrack::ContentHintType hint) {
102 switch (hint) { 102 switch (hint) {
103 case WebMediaStreamTrack::ContentHintType::None: 103 case WebMediaStreamTrack::ContentHintType::None:
104 break; 104 break;
105 case WebMediaStreamTrack::ContentHintType::AudioSpeech: 105 case WebMediaStreamTrack::ContentHintType::AudioSpeech:
106 case WebMediaStreamTrack::ContentHintType::AudioMusic: 106 case WebMediaStreamTrack::ContentHintType::AudioMusic:
107 DCHECK_EQ(MediaStreamSource::TypeAudio, source()->type()); 107 DCHECK_EQ(MediaStreamSource::TypeAudio, source()->type());
108 break; 108 break;
109 case WebMediaStreamTrack::ContentHintType::VideoFluid: 109 case WebMediaStreamTrack::ContentHintType::VideoMotion:
110 case WebMediaStreamTrack::ContentHintType::VideoDetailed: 110 case WebMediaStreamTrack::ContentHintType::VideoDetail:
111 DCHECK_EQ(MediaStreamSource::TypeVideo, source()->type()); 111 DCHECK_EQ(MediaStreamSource::TypeVideo, source()->type());
112 break; 112 break;
113 } 113 }
114 if (hint == m_contentHint) 114 if (hint == m_contentHint)
115 return; 115 return;
116 m_contentHint = hint; 116 m_contentHint = hint;
117 117
118 MediaStreamCenter::instance().didSetContentHint(this); 118 MediaStreamCenter::instance().didSetContentHint(this);
119 } 119 }
120 120
(...skipping 17 matching lines...) Expand all
138 webAudioData[i] = bus->channel(i)->mutableData(); 138 webAudioData[i] = bus->channel(i)->mutableData();
139 139
140 m_webAudioSourceProvider->provideInput(webAudioData, framesToProcess); 140 m_webAudioSourceProvider->provideInput(webAudioData, framesToProcess);
141 } 141 }
142 142
143 DEFINE_TRACE(MediaStreamComponent) { 143 DEFINE_TRACE(MediaStreamComponent) {
144 visitor->trace(m_source); 144 visitor->trace(m_source);
145 } 145 }
146 146
147 } // namespace blink 147 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698