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/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 bool RenderThreadImpl::ResolveProxy(const GURL& url, std::string* proxy_list) { | 879 bool RenderThreadImpl::ResolveProxy(const GURL& url, std::string* proxy_list) { |
880 bool result = false; | 880 bool result = false; |
881 Send(new ViewHostMsg_ResolveProxy(url, &result, proxy_list)); | 881 Send(new ViewHostMsg_ResolveProxy(url, &result, proxy_list)); |
882 return result; | 882 return result; |
883 } | 883 } |
884 | 884 |
885 void RenderThreadImpl::PostponeIdleNotification() { | 885 void RenderThreadImpl::PostponeIdleNotification() { |
886 idle_notifications_to_skip_ = 2; | 886 idle_notifications_to_skip_ = 2; |
887 } | 887 } |
888 | 888 |
889 scoped_refptr<media::GpuVideoDecoder::Factories> | 889 scoped_refptr<media::GpuVideoDecoderFactories> |
890 RenderThreadImpl::GetGpuFactories() { | 890 RenderThreadImpl::GetGpuFactories() { |
891 DCHECK(IsMainThread()); | 891 DCHECK(IsMainThread()); |
892 | 892 |
893 const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); | 893 const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); |
894 scoped_refptr<media::GpuVideoDecoder::Factories> gpu_factories; | 894 scoped_refptr<media::GpuVideoDecoderFactories> gpu_factories; |
895 WebGraphicsContext3DCommandBufferImpl* context3d = NULL; | 895 WebGraphicsContext3DCommandBufferImpl* context3d = NULL; |
896 if (!cmd_line->HasSwitch(switches::kDisableAcceleratedVideoDecode)) | 896 if (!cmd_line->HasSwitch(switches::kDisableAcceleratedVideoDecode)) |
897 context3d = GetGpuVDAContext3D(); | 897 context3d = GetGpuVDAContext3D(); |
898 if (context3d) { | 898 if (context3d) { |
899 scoped_refptr<base::MessageLoopProxy> factories_loop = | 899 scoped_refptr<base::MessageLoopProxy> factories_loop = |
900 compositor_message_loop_proxy(); | 900 compositor_message_loop_proxy(); |
901 if (!factories_loop.get()) | 901 if (!factories_loop.get()) |
902 factories_loop = base::MessageLoopProxy::current(); | 902 factories_loop = base::MessageLoopProxy::current(); |
903 GpuChannelHost* gpu_channel_host = GetGpuChannel(); | 903 GpuChannelHost* gpu_channel_host = GetGpuChannel(); |
904 if (gpu_channel_host) { | 904 if (gpu_channel_host) { |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 | 1300 |
1301 void RenderThreadImpl::SetFlingCurveParameters( | 1301 void RenderThreadImpl::SetFlingCurveParameters( |
1302 const std::vector<float>& new_touchpad, | 1302 const std::vector<float>& new_touchpad, |
1303 const std::vector<float>& new_touchscreen) { | 1303 const std::vector<float>& new_touchscreen) { |
1304 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, | 1304 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, |
1305 new_touchscreen); | 1305 new_touchscreen); |
1306 | 1306 |
1307 } | 1307 } |
1308 | 1308 |
1309 } // namespace content | 1309 } // namespace content |
OLD | NEW |