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 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 params.renderer_preferences, | 904 params.renderer_preferences, |
905 params.web_preferences, | 905 params.web_preferences, |
906 new SharedRenderViewCounter(0), | 906 new SharedRenderViewCounter(0), |
907 params.view_id, | 907 params.view_id, |
908 params.surface_id, | 908 params.surface_id, |
909 params.session_storage_namespace_id, | 909 params.session_storage_namespace_id, |
910 params.frame_name, | 910 params.frame_name, |
911 false, | 911 false, |
912 params.swapped_out, | 912 params.swapped_out, |
913 params.next_page_id, | 913 params.next_page_id, |
914 params.screen_info, | |
915 params.guest, | 914 params.guest, |
916 params.accessibility_mode); | 915 params.accessibility_mode); |
917 } | 916 } |
918 | 917 |
919 GpuChannelHost* RenderThreadImpl::EstablishGpuChannelSync( | 918 GpuChannelHost* RenderThreadImpl::EstablishGpuChannelSync( |
920 content::CauseForGpuLaunch cause_for_gpu_launch) { | 919 content::CauseForGpuLaunch cause_for_gpu_launch) { |
921 if (gpu_channel_.get()) { | 920 if (gpu_channel_.get()) { |
922 // Do nothing if we already have a GPU channel or are already | 921 // Do nothing if we already have a GPU channel or are already |
923 // establishing one. | 922 // establishing one. |
924 if (gpu_channel_->state() == GpuChannelHost::kUnconnected || | 923 if (gpu_channel_->state() == GpuChannelHost::kUnconnected || |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 | 1003 |
1005 scoped_refptr<base::MessageLoopProxy> | 1004 scoped_refptr<base::MessageLoopProxy> |
1006 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1005 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
1007 DCHECK(message_loop() == MessageLoop::current()); | 1006 DCHECK(message_loop() == MessageLoop::current()); |
1008 if (!file_thread_.get()) { | 1007 if (!file_thread_.get()) { |
1009 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1008 file_thread_.reset(new base::Thread("Renderer::FILE")); |
1010 file_thread_->Start(); | 1009 file_thread_->Start(); |
1011 } | 1010 } |
1012 return file_thread_->message_loop_proxy(); | 1011 return file_thread_->message_loop_proxy(); |
1013 } | 1012 } |
OLD | NEW |