| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |