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_webkitplatformsupport_impl.h" | 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 case 7: | 651 case 7: |
652 layout = CHANNEL_LAYOUT_7_0; | 652 layout = CHANNEL_LAYOUT_7_0; |
653 break; | 653 break; |
654 case 8: | 654 case 8: |
655 layout = CHANNEL_LAYOUT_7_1; | 655 layout = CHANNEL_LAYOUT_7_1; |
656 break; | 656 break; |
657 default: | 657 default: |
658 layout = CHANNEL_LAYOUT_STEREO; | 658 layout = CHANNEL_LAYOUT_STEREO; |
659 } | 659 } |
660 | 660 |
661 AudioParameters params(AudioParameters::AUDIO_PCM_LOW_LATENCY, | 661 media::AudioParameters params( |
662 layout, | 662 media::AudioParameters::AUDIO_PCM_LOW_LATENCY, layout, |
663 static_cast<int>(sampleRate), | 663 static_cast<int>(sampleRate), 16, bufferSize); |
664 16, | |
665 bufferSize); | |
666 | 664 |
667 return new RendererWebAudioDeviceImpl(params, callback); | 665 return new RendererWebAudioDeviceImpl(params, callback); |
668 } | 666 } |
669 | 667 |
670 //------------------------------------------------------------------------------ | 668 //------------------------------------------------------------------------------ |
671 | 669 |
672 WebKit::WebString | 670 WebKit::WebString |
673 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString( | 671 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString( |
674 unsigned key_size_index, | 672 unsigned key_size_index, |
675 const WebKit::WebString& challenge, | 673 const WebKit::WebString& challenge, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 DCHECK(render_thread); | 735 DCHECK(render_thread); |
738 if (!render_thread) | 736 if (!render_thread) |
739 return NULL; | 737 return NULL; |
740 return render_thread->CreateMediaStreamCenter(client); | 738 return render_thread->CreateMediaStreamCenter(client); |
741 } | 739 } |
742 | 740 |
743 GpuChannelHostFactory* | 741 GpuChannelHostFactory* |
744 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { | 742 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { |
745 return RenderThreadImpl::current(); | 743 return RenderThreadImpl::current(); |
746 } | 744 } |
OLD | NEW |