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 <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "content/public/common/result_codes.h" | 46 #include "content/public/common/result_codes.h" |
47 #include "content/public/common/sandbox_type.h" | 47 #include "content/public/common/sandbox_type.h" |
48 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 48 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
49 #include "gpu/command_buffer/service/gpu_preferences.h" | 49 #include "gpu/command_buffer/service/gpu_preferences.h" |
50 #include "gpu/command_buffer/service/gpu_switches.h" | 50 #include "gpu/command_buffer/service/gpu_switches.h" |
51 #include "ipc/ipc_channel_handle.h" | 51 #include "ipc/ipc_channel_handle.h" |
52 #include "ipc/ipc_switches.h" | 52 #include "ipc/ipc_switches.h" |
53 #include "ipc/message_filter.h" | 53 #include "ipc/message_filter.h" |
54 #include "media/base/media_switches.h" | 54 #include "media/base/media_switches.h" |
55 #include "ui/base/ui_base_switches.h" | 55 #include "ui/base/ui_base_switches.h" |
56 #include "ui/events/latency_info.h" | |
57 #include "ui/gl/gl_switches.h" | 56 #include "ui/gl/gl_switches.h" |
| 57 #include "ui/latency_info/latency_info.h" |
58 | 58 |
59 #if defined(OS_ANDROID) | 59 #if defined(OS_ANDROID) |
60 #include "base/android/build_info.h" | 60 #include "base/android/build_info.h" |
61 #endif | 61 #endif |
62 | 62 |
63 #if defined(OS_WIN) | 63 #if defined(OS_WIN) |
64 #include "base/win/windows_version.h" | 64 #include "base/win/windows_version.h" |
65 #include "content/common/sandbox_win.h" | 65 #include "content/common/sandbox_win.h" |
66 #include "sandbox/win/src/sandbox_policy.h" | 66 #include "sandbox/win/src/sandbox_policy.h" |
67 #include "ui/gfx/switches.h" | 67 #include "ui/gfx/switches.h" |
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1184 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1184 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1185 ClientIdToShaderCacheMap::iterator iter = | 1185 ClientIdToShaderCacheMap::iterator iter = |
1186 client_id_to_shader_cache_.find(client_id); | 1186 client_id_to_shader_cache_.find(client_id); |
1187 // If the cache doesn't exist then this is an off the record profile. | 1187 // If the cache doesn't exist then this is an off the record profile. |
1188 if (iter == client_id_to_shader_cache_.end()) | 1188 if (iter == client_id_to_shader_cache_.end()) |
1189 return; | 1189 return; |
1190 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1190 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1191 } | 1191 } |
1192 | 1192 |
1193 } // namespace content | 1193 } // namespace content |
OLD | NEW |