OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 } else { | 557 } else { |
558 #if defined(ENABLE_GPU) | 558 #if defined(ENABLE_GPU) |
559 return new WebGraphicsContext3DCommandBufferImpl(); | 559 return new WebGraphicsContext3DCommandBufferImpl(); |
560 #else | 560 #else |
561 return NULL; | 561 return NULL; |
562 #endif | 562 #endif |
563 } | 563 } |
564 } | 564 } |
565 | 565 |
566 double RendererWebKitPlatformSupportImpl::audioHardwareSampleRate() { | 566 double RendererWebKitPlatformSupportImpl::audioHardwareSampleRate() { |
567 return AudioDevice::GetAudioHardwareSampleRate(); | 567 return AudioHardware::GetOutputSampleRate(); |
568 } | 568 } |
569 | 569 |
570 size_t RendererWebKitPlatformSupportImpl::audioHardwareBufferSize() { | 570 size_t RendererWebKitPlatformSupportImpl::audioHardwareBufferSize() { |
571 return AudioDevice::GetAudioHardwareBufferSize(); | 571 return AudioHardware::GetOutputBufferSize(); |
572 } | 572 } |
573 | 573 |
574 WebAudioDevice* | 574 WebAudioDevice* |
575 RendererWebKitPlatformSupportImpl::createAudioDevice( | 575 RendererWebKitPlatformSupportImpl::createAudioDevice( |
576 size_t buffer_size, | 576 size_t buffer_size, |
577 unsigned channels, | 577 unsigned channels, |
578 double sample_rate, | 578 double sample_rate, |
579 WebAudioDevice::RenderCallback* callback) { | 579 WebAudioDevice::RenderCallback* callback) { |
580 return new RendererWebAudioDeviceImpl(buffer_size, | 580 return new RendererWebAudioDeviceImpl(buffer_size, |
581 channels, | 581 channels, |
(...skipping 25 matching lines...) Expand all Loading... |
607 blob_registry_.reset(new WebBlobRegistryImpl(ChildThread::current())); | 607 blob_registry_.reset(new WebBlobRegistryImpl(ChildThread::current())); |
608 } | 608 } |
609 return blob_registry_.get(); | 609 return blob_registry_.get(); |
610 } | 610 } |
611 | 611 |
612 WebKit::WebString RendererWebKitPlatformSupportImpl::userAgent( | 612 WebKit::WebString RendererWebKitPlatformSupportImpl::userAgent( |
613 const WebKit::WebURL& url) { | 613 const WebKit::WebURL& url) { |
614 return WebKitPlatformSupportImpl::userAgent(url); | 614 return WebKitPlatformSupportImpl::userAgent(url); |
615 } | 615 } |
616 | 616 |
OLD | NEW |