Chromium Code Reviews| 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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 871 params.web_preferences, | 871 params.web_preferences, |
| 872 new SharedRenderViewCounter(0), | 872 new SharedRenderViewCounter(0), |
| 873 params.view_id, | 873 params.view_id, |
| 874 params.surface_id, | 874 params.surface_id, |
| 875 params.session_storage_namespace_id, | 875 params.session_storage_namespace_id, |
| 876 params.frame_name, | 876 params.frame_name, |
| 877 false, | 877 false, |
| 878 params.swapped_out, | 878 params.swapped_out, |
| 879 params.next_page_id, | 879 params.next_page_id, |
| 880 params.screen_info, | 880 params.screen_info, |
| 881 params.guest, | 881 false, |
|
Charlie Reis
2012/05/11 17:41:03
Is it too soon to remove this parameter and pass i
Fady Samuel
2012/05/11 22:03:34
Yea, I currently don't pass these to RenderViewImp
| |
| 882 params.accessibility_mode); | 882 params.accessibility_mode); |
| 883 } | 883 } |
| 884 | 884 |
| 885 GpuChannelHost* RenderThreadImpl::EstablishGpuChannelSync( | 885 GpuChannelHost* RenderThreadImpl::EstablishGpuChannelSync( |
| 886 content::CauseForGpuLaunch cause_for_gpu_launch) { | 886 content::CauseForGpuLaunch cause_for_gpu_launch) { |
| 887 if (gpu_channel_.get()) { | 887 if (gpu_channel_.get()) { |
| 888 // Do nothing if we already have a GPU channel or are already | 888 // Do nothing if we already have a GPU channel or are already |
| 889 // establishing one. | 889 // establishing one. |
| 890 if (gpu_channel_->state() == GpuChannelHost::kUnconnected || | 890 if (gpu_channel_->state() == GpuChannelHost::kUnconnected || |
| 891 gpu_channel_->state() == GpuChannelHost::kConnected) | 891 gpu_channel_->state() == GpuChannelHost::kConnected) |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 970 | 970 |
| 971 scoped_refptr<base::MessageLoopProxy> | 971 scoped_refptr<base::MessageLoopProxy> |
| 972 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 972 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
| 973 DCHECK(message_loop() == MessageLoop::current()); | 973 DCHECK(message_loop() == MessageLoop::current()); |
| 974 if (!file_thread_.get()) { | 974 if (!file_thread_.get()) { |
| 975 file_thread_.reset(new base::Thread("Renderer::FILE")); | 975 file_thread_.reset(new base::Thread("Renderer::FILE")); |
| 976 file_thread_->Start(); | 976 file_thread_->Start(); |
| 977 } | 977 } |
| 978 return file_thread_->message_loop_proxy(); | 978 return file_thread_->message_loop_proxy(); |
| 979 } | 979 } |
| OLD | NEW |