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/browser/gpu/gpu_process_host.h" | 5 #include "content/browser/gpu/gpu_process_host.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <list> | 10 #include <list> |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "content/browser/browser_main_loop.h" | 31 #include "content/browser/browser_main_loop.h" |
32 #include "content/browser/gpu/compositor_util.h" | 32 #include "content/browser/gpu/compositor_util.h" |
33 #include "content/browser/gpu/gpu_data_manager_impl.h" | 33 #include "content/browser/gpu/gpu_data_manager_impl.h" |
34 #include "content/browser/gpu/gpu_main_thread_factory.h" | 34 #include "content/browser/gpu/gpu_main_thread_factory.h" |
35 #include "content/browser/gpu/gpu_process_host_ui_shim.h" | 35 #include "content/browser/gpu/gpu_process_host_ui_shim.h" |
36 #include "content/browser/gpu/shader_cache_factory.h" | 36 #include "content/browser/gpu/shader_cache_factory.h" |
37 #include "content/browser/renderer_host/render_widget_host_impl.h" | 37 #include "content/browser/renderer_host/render_widget_host_impl.h" |
38 #include "content/browser/renderer_host/render_widget_host_view_frame_subscriber
.h" | 38 #include "content/browser/renderer_host/render_widget_host_view_frame_subscriber
.h" |
39 #include "content/browser/service_manager/service_manager_context.h" | 39 #include "content/browser/service_manager/service_manager_context.h" |
40 #include "content/common/child_process_host_impl.h" | 40 #include "content/common/child_process_host_impl.h" |
41 #include "content/common/establish_channel_params.h" | |
42 #include "content/common/gpu_host_messages.h" | 41 #include "content/common/gpu_host_messages.h" |
43 #include "content/common/in_process_child_thread_params.h" | 42 #include "content/common/in_process_child_thread_params.h" |
44 #include "content/common/service_manager/child_connection.h" | 43 #include "content/common/service_manager/child_connection.h" |
45 #include "content/common/view_messages.h" | 44 #include "content/common/view_messages.h" |
46 #include "content/public/browser/browser_thread.h" | 45 #include "content/public/browser/browser_thread.h" |
47 #include "content/public/browser/content_browser_client.h" | 46 #include "content/public/browser/content_browser_client.h" |
48 #include "content/public/browser/gpu_utils.h" | 47 #include "content/public/browser/gpu_utils.h" |
49 #include "content/public/browser/render_process_host.h" | 48 #include "content/public/browser/render_process_host.h" |
50 #include "content/public/browser/render_widget_host_view.h" | 49 #include "content/public/browser/render_widget_host_view.h" |
51 #include "content/public/common/connection_filter.h" | 50 #include "content/public/common/connection_filter.h" |
(...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1240 GetShaderCacheFactorySingleton()->Get(client_id); | 1239 GetShaderCacheFactorySingleton()->Get(client_id); |
1241 if (!cache.get()) | 1240 if (!cache.get()) |
1242 return; | 1241 return; |
1243 | 1242 |
1244 cache->set_shader_loaded_callback(base::Bind(&HostLoadedShader, host_id_)); | 1243 cache->set_shader_loaded_callback(base::Bind(&HostLoadedShader, host_id_)); |
1245 | 1244 |
1246 client_id_to_shader_cache_[client_id] = cache; | 1245 client_id_to_shader_cache_[client_id] = cache; |
1247 } | 1246 } |
1248 | 1247 |
1249 } // namespace content | 1248 } // namespace content |
OLD | NEW |