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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 55 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
56 #include "gpu/command_buffer/service/gpu_preferences.h" | 56 #include "gpu/command_buffer/service/gpu_preferences.h" |
57 #include "gpu/command_buffer/service/gpu_switches.h" | 57 #include "gpu/command_buffer/service/gpu_switches.h" |
58 #include "ipc/ipc_channel_handle.h" | 58 #include "ipc/ipc_channel_handle.h" |
59 #include "ipc/ipc_switches.h" | 59 #include "ipc/ipc_switches.h" |
60 #include "ipc/message_filter.h" | 60 #include "ipc/message_filter.h" |
61 #include "media/base/media_switches.h" | 61 #include "media/base/media_switches.h" |
62 #include "mojo/edk/embedder/embedder.h" | 62 #include "mojo/edk/embedder/embedder.h" |
63 #include "services/shell/public/cpp/connection.h" | 63 #include "services/shell/public/cpp/connection.h" |
64 #include "services/shell/public/cpp/interface_provider.h" | 64 #include "services/shell/public/cpp/interface_provider.h" |
65 #include "services/shell/public/cpp/interface_registry.h" | |
66 #include "ui/base/ui_base_switches.h" | 65 #include "ui/base/ui_base_switches.h" |
67 #include "ui/events/latency_info.h" | 66 #include "ui/events/latency_info.h" |
68 #include "ui/gl/gl_switches.h" | 67 #include "ui/gl/gl_switches.h" |
69 | 68 |
70 #if defined(OS_ANDROID) | 69 #if defined(OS_ANDROID) |
71 #include "base/android/build_info.h" | 70 #include "base/android/build_info.h" |
72 #endif | 71 #endif |
73 | 72 |
74 #if defined(OS_WIN) | 73 #if defined(OS_WIN) |
75 #include "base/win/windows_version.h" | 74 #include "base/win/windows_version.h" |
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1186 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1185 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1187 ClientIdToShaderCacheMap::iterator iter = | 1186 ClientIdToShaderCacheMap::iterator iter = |
1188 client_id_to_shader_cache_.find(client_id); | 1187 client_id_to_shader_cache_.find(client_id); |
1189 // If the cache doesn't exist then this is an off the record profile. | 1188 // If the cache doesn't exist then this is an off the record profile. |
1190 if (iter == client_id_to_shader_cache_.end()) | 1189 if (iter == client_id_to_shader_cache_.end()) |
1191 return; | 1190 return; |
1192 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1191 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1193 } | 1192 } |
1194 | 1193 |
1195 } // namespace content | 1194 } // namespace content |
OLD | NEW |