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

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

Issue 9805001: Move media/audio files into media namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix various compiler errors Created 8 years, 9 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 | Annotate | Revision Log
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_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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 case 7: 643 case 7:
644 layout = CHANNEL_LAYOUT_7_0; 644 layout = CHANNEL_LAYOUT_7_0;
645 break; 645 break;
646 case 8: 646 case 8:
647 layout = CHANNEL_LAYOUT_7_1; 647 layout = CHANNEL_LAYOUT_7_1;
648 break; 648 break;
649 default: 649 default:
650 layout = CHANNEL_LAYOUT_STEREO; 650 layout = CHANNEL_LAYOUT_STEREO;
651 } 651 }
652 652
653 AudioParameters params(AudioParameters::AUDIO_PCM_LOW_LATENCY, 653 media::AudioParameters params(
654 layout, 654 media::AudioParameters::AUDIO_PCM_LOW_LATENCY, layout,
655 static_cast<int>(sampleRate), 655 static_cast<int>(sampleRate), 16, bufferSize);
656 16,
657 bufferSize);
658 656
659 return new RendererWebAudioDeviceImpl(params, callback); 657 return new RendererWebAudioDeviceImpl(params, callback);
660 } 658 }
661 659
662 //------------------------------------------------------------------------------ 660 //------------------------------------------------------------------------------
663 661
664 WebKit::WebString 662 WebKit::WebString
665 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString( 663 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString(
666 unsigned key_size_index, 664 unsigned key_size_index,
667 const WebKit::WebString& challenge, 665 const WebKit::WebString& challenge,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 DCHECK(render_thread); 727 DCHECK(render_thread);
730 if (!render_thread) 728 if (!render_thread)
731 return NULL; 729 return NULL;
732 return render_thread->CreateMediaStreamCenter(client); 730 return render_thread->CreateMediaStreamCenter(client);
733 } 731 }
734 732
735 GpuChannelHostFactory* 733 GpuChannelHostFactory*
736 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { 734 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() {
737 return RenderThreadImpl::current(); 735 return RenderThreadImpl::current();
738 } 736 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698