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 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 params.renderer_preferences, | 887 params.renderer_preferences, |
888 params.web_preferences, | 888 params.web_preferences, |
889 new SharedRenderViewCounter(0), | 889 new SharedRenderViewCounter(0), |
890 params.view_id, | 890 params.view_id, |
891 params.surface_id, | 891 params.surface_id, |
892 params.session_storage_namespace_id, | 892 params.session_storage_namespace_id, |
893 params.frame_name, | 893 params.frame_name, |
894 false, | 894 false, |
895 params.swapped_out, | 895 params.swapped_out, |
896 params.next_page_id, | 896 params.next_page_id, |
897 params.screen_info, | |
898 NULL, | 897 NULL, |
899 params.accessibility_mode); | 898 params.accessibility_mode); |
900 } | 899 } |
901 } | 900 } |
902 | 901 |
903 GpuChannelHost* RenderThreadImpl::EstablishGpuChannelSync( | 902 GpuChannelHost* RenderThreadImpl::EstablishGpuChannelSync( |
904 content::CauseForGpuLaunch cause_for_gpu_launch) { | 903 content::CauseForGpuLaunch cause_for_gpu_launch) { |
905 TRACE_EVENT0("gpu", "RenderThreadImpl::EstablishGpuChannelSync"); | 904 TRACE_EVENT0("gpu", "RenderThreadImpl::EstablishGpuChannelSync"); |
906 | 905 |
907 if (gpu_channel_.get()) { | 906 if (gpu_channel_.get()) { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 | 985 |
987 scoped_refptr<base::MessageLoopProxy> | 986 scoped_refptr<base::MessageLoopProxy> |
988 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 987 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
989 DCHECK(message_loop() == MessageLoop::current()); | 988 DCHECK(message_loop() == MessageLoop::current()); |
990 if (!file_thread_.get()) { | 989 if (!file_thread_.get()) { |
991 file_thread_.reset(new base::Thread("Renderer::FILE")); | 990 file_thread_.reset(new base::Thread("Renderer::FILE")); |
992 file_thread_->Start(); | 991 file_thread_->Start(); |
993 } | 992 } |
994 return file_thread_->message_loop_proxy(); | 993 return file_thread_->message_loop_proxy(); |
995 } | 994 } |
OLD | NEW |