| 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/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 return false; | 621 return false; |
| 622 | 622 |
| 623 const gpu::GPUInfo& gpu_info = host->gpu_info(); | 623 const gpu::GPUInfo& gpu_info = host->gpu_info(); |
| 624 if (gpu_info.can_lose_context || gpu_info.software_rendering) | 624 if (gpu_info.can_lose_context || gpu_info.software_rendering) |
| 625 return false; | 625 return false; |
| 626 | 626 |
| 627 return true; | 627 return true; |
| 628 } | 628 } |
| 629 | 629 |
| 630 bool RendererWebKitPlatformSupportImpl::isThreadedCompositingEnabled() { | 630 bool RendererWebKitPlatformSupportImpl::isThreadedCompositingEnabled() { |
| 631 return !!RenderThreadImpl::current()->compositor_message_loop_proxy(); | 631 return !!RenderThreadImpl::current()->compositor_message_loop_proxy().get(); |
| 632 } | 632 } |
| 633 | 633 |
| 634 double RendererWebKitPlatformSupportImpl::audioHardwareSampleRate() { | 634 double RendererWebKitPlatformSupportImpl::audioHardwareSampleRate() { |
| 635 RenderThreadImpl* thread = RenderThreadImpl::current(); | 635 RenderThreadImpl* thread = RenderThreadImpl::current(); |
| 636 return thread->GetAudioHardwareConfig()->GetOutputSampleRate(); | 636 return thread->GetAudioHardwareConfig()->GetOutputSampleRate(); |
| 637 } | 637 } |
| 638 | 638 |
| 639 size_t RendererWebKitPlatformSupportImpl::audioHardwareBufferSize() { | 639 size_t RendererWebKitPlatformSupportImpl::audioHardwareBufferSize() { |
| 640 RenderThreadImpl* thread = RenderThreadImpl::current(); | 640 RenderThreadImpl* thread = RenderThreadImpl::current(); |
| 641 return thread->GetAudioHardwareConfig()->GetOutputBufferSize(); | 641 return thread->GetAudioHardwareConfig()->GetOutputBufferSize(); |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 } | 897 } |
| 898 | 898 |
| 899 //------------------------------------------------------------------------------ | 899 //------------------------------------------------------------------------------ |
| 900 | 900 |
| 901 WebKit::WebCompositorSupport* | 901 WebKit::WebCompositorSupport* |
| 902 RendererWebKitPlatformSupportImpl::compositorSupport() { | 902 RendererWebKitPlatformSupportImpl::compositorSupport() { |
| 903 return &compositor_support_; | 903 return &compositor_support_; |
| 904 } | 904 } |
| 905 | 905 |
| 906 } // namespace content | 906 } // namespace content |
| OLD | NEW |