| 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 26 matching lines...) Expand all Loading... |
| 37 #include "content/common/npobject_util.h" | 37 #include "content/common/npobject_util.h" |
| 38 #include "content/common/plugin_messages.h" | 38 #include "content/common/plugin_messages.h" |
| 39 #include "content/common/resource_dispatcher.h" | 39 #include "content/common/resource_dispatcher.h" |
| 40 #include "content/common/resource_messages.h" | 40 #include "content/common/resource_messages.h" |
| 41 #include "content/common/view_messages.h" | 41 #include "content/common/view_messages.h" |
| 42 #include "content/common/web_database_observer_impl.h" | 42 #include "content/common/web_database_observer_impl.h" |
| 43 #include "content/public/common/compositor_util.h" | 43 #include "content/public/common/compositor_util.h" |
| 44 #include "content/public/common/content_constants.h" | 44 #include "content/public/common/content_constants.h" |
| 45 #include "content/public/common/content_paths.h" | 45 #include "content/public/common/content_paths.h" |
| 46 #include "content/public/common/content_switches.h" | 46 #include "content/public/common/content_switches.h" |
| 47 #include "content/public/common/gpu_rendering_stats.h" |
| 47 #include "content/public/common/renderer_preferences.h" | 48 #include "content/public/common/renderer_preferences.h" |
| 48 #include "content/public/common/url_constants.h" | 49 #include "content/public/common/url_constants.h" |
| 49 #include "content/public/renderer/content_renderer_client.h" | 50 #include "content/public/renderer/content_renderer_client.h" |
| 50 #include "content/public/renderer/render_process_observer.h" | 51 #include "content/public/renderer/render_process_observer.h" |
| 51 #include "content/public/renderer/render_view_visitor.h" | 52 #include "content/public/renderer/render_view_visitor.h" |
| 52 #include "content/renderer/browser_plugin/old/browser_plugin_channel_manager.h" | 53 #include "content/renderer/browser_plugin/old/browser_plugin_channel_manager.h" |
| 53 #include "content/renderer/browser_plugin/old/browser_plugin_registry.h" | 54 #include "content/renderer/browser_plugin/old/browser_plugin_registry.h" |
| 54 #include "content/renderer/devtools_agent_filter.h" | 55 #include "content/renderer/devtools_agent_filter.h" |
| 55 #include "content/renderer/dom_storage/dom_storage_dispatcher.h" | 56 #include "content/renderer/dom_storage/dom_storage_dispatcher.h" |
| 56 #include "content/renderer/dom_storage/webstoragearea_impl.h" | 57 #include "content/renderer/dom_storage/webstoragearea_impl.h" |
| (...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 | 1074 |
| 1074 scoped_refptr<base::MessageLoopProxy> | 1075 scoped_refptr<base::MessageLoopProxy> |
| 1075 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1076 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
| 1076 DCHECK(message_loop() == MessageLoop::current()); | 1077 DCHECK(message_loop() == MessageLoop::current()); |
| 1077 if (!file_thread_.get()) { | 1078 if (!file_thread_.get()) { |
| 1078 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1079 file_thread_.reset(new base::Thread("Renderer::FILE")); |
| 1079 file_thread_->Start(); | 1080 file_thread_->Start(); |
| 1080 } | 1081 } |
| 1081 return file_thread_->message_loop_proxy(); | 1082 return file_thread_->message_loop_proxy(); |
| 1082 } | 1083 } |
| 1084 |
| 1085 void RenderThreadImpl::GetGpuRenderingStats( |
| 1086 content::GpuRenderingStats& stats) { |
| 1087 CHECK(gpu_channel_.get()); |
| 1088 gpu_channel_->CollectRenderingStats(stats); |
| 1089 } |
| OLD | NEW |