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

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

Issue 12662038: Revert 187936 "Pass more detailed audio hardware configuration i..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1440/src/
Patch Set: Created 7 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
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | content/test/DEPS » ('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 (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_util.h" 8 #include "base/file_util.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 double RendererWebKitPlatformSupportImpl::audioHardwareSampleRate() { 626 double RendererWebKitPlatformSupportImpl::audioHardwareSampleRate() {
627 RenderThreadImpl* thread = RenderThreadImpl::current(); 627 RenderThreadImpl* thread = RenderThreadImpl::current();
628 return thread->GetAudioHardwareConfig()->GetOutputSampleRate(); 628 return thread->GetAudioHardwareConfig()->GetOutputSampleRate();
629 } 629 }
630 630
631 size_t RendererWebKitPlatformSupportImpl::audioHardwareBufferSize() { 631 size_t RendererWebKitPlatformSupportImpl::audioHardwareBufferSize() {
632 RenderThreadImpl* thread = RenderThreadImpl::current(); 632 RenderThreadImpl* thread = RenderThreadImpl::current();
633 return thread->GetAudioHardwareConfig()->GetOutputBufferSize(); 633 return thread->GetAudioHardwareConfig()->GetOutputBufferSize();
634 } 634 }
635 635
636 unsigned RendererWebKitPlatformSupportImpl::audioHardwareOutputChannels() {
637 RenderThreadImpl* thread = RenderThreadImpl::current();
638 return thread->GetAudioHardwareConfig()->GetOutputChannels();
639 }
640
641 // TODO(crogers): remove deprecated API as soon as WebKit calls new API. 636 // TODO(crogers): remove deprecated API as soon as WebKit calls new API.
642 WebAudioDevice* 637 WebAudioDevice*
643 RendererWebKitPlatformSupportImpl::createAudioDevice( 638 RendererWebKitPlatformSupportImpl::createAudioDevice(
644 size_t buffer_size, 639 size_t buffer_size,
645 unsigned channels, 640 unsigned channels,
646 double sample_rate, 641 double sample_rate,
647 WebAudioDevice::RenderCallback* callback) { 642 WebAudioDevice::RenderCallback* callback) {
648 return createAudioDevice( 643 return createAudioDevice(
649 buffer_size, 0, channels, sample_rate, callback, "default"); 644 buffer_size, 0, channels, sample_rate, callback, "default");
650 } 645 }
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 //------------------------------------------------------------------------------ 889 //------------------------------------------------------------------------------
895 890
896 GrContext* RendererWebKitPlatformSupportImpl::sharedOffscreenGrContext() { 891 GrContext* RendererWebKitPlatformSupportImpl::sharedOffscreenGrContext() {
897 if (!shared_offscreen_context_) 892 if (!shared_offscreen_context_)
898 return NULL; 893 return NULL;
899 return shared_offscreen_context_->GrContext(); 894 return shared_offscreen_context_->GrContext();
900 } 895 }
901 896
902 897
903 } // namespace content 898 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | content/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698