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

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

Issue 15984016: Call scoped_refptr<T>::get() rather than relying on implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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/render_widget.cc ('k') | content/shell/shell_devtools_frontend.cc » ('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/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
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
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
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/shell/shell_devtools_frontend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698