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 "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/base_switches.h" | 8 #include "base/base_switches.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/debug/trace_event.h" | |
14 #include "base/logging.h" | 13 #include "base/logging.h" |
15 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
16 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
17 #include "base/sha1.h" | 16 #include "base/sha1.h" |
18 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
| 18 #include "base/trace_event/trace_event.h" |
19 #include "content/browser/browser_child_process_host_impl.h" | 19 #include "content/browser/browser_child_process_host_impl.h" |
20 #include "content/browser/gpu/compositor_util.h" | 20 #include "content/browser/gpu/compositor_util.h" |
21 #include "content/browser/gpu/gpu_data_manager_impl.h" | 21 #include "content/browser/gpu/gpu_data_manager_impl.h" |
22 #include "content/browser/gpu/gpu_process_host_ui_shim.h" | 22 #include "content/browser/gpu/gpu_process_host_ui_shim.h" |
23 #include "content/browser/gpu/shader_disk_cache.h" | 23 #include "content/browser/gpu/shader_disk_cache.h" |
24 #include "content/browser/renderer_host/render_widget_host_impl.h" | 24 #include "content/browser/renderer_host/render_widget_host_impl.h" |
25 #include "content/browser/renderer_host/render_widget_resize_helper.h" | 25 #include "content/browser/renderer_host/render_widget_resize_helper.h" |
26 #include "content/common/child_process_host_impl.h" | 26 #include "content/common/child_process_host_impl.h" |
27 #include "content/common/gpu/gpu_messages.h" | 27 #include "content/common/gpu/gpu_messages.h" |
28 #include "content/common/view_messages.h" | 28 #include "content/common/view_messages.h" |
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1085 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1085 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1086 ClientIdToShaderCacheMap::iterator iter = | 1086 ClientIdToShaderCacheMap::iterator iter = |
1087 client_id_to_shader_cache_.find(client_id); | 1087 client_id_to_shader_cache_.find(client_id); |
1088 // If the cache doesn't exist then this is an off the record profile. | 1088 // If the cache doesn't exist then this is an off the record profile. |
1089 if (iter == client_id_to_shader_cache_.end()) | 1089 if (iter == client_id_to_shader_cache_.end()) |
1090 return; | 1090 return; |
1091 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1091 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1092 } | 1092 } |
1093 | 1093 |
1094 } // namespace content | 1094 } // namespace content |
OLD | NEW |