| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #include "gpu/ipc/service/switches.h" | 59 #include "gpu/ipc/service/switches.h" |
| 60 #include "ipc/ipc_channel_handle.h" | 60 #include "ipc/ipc_channel_handle.h" |
| 61 #include "ipc/message_filter.h" | 61 #include "ipc/message_filter.h" |
| 62 #include "media/base/media_switches.h" | 62 #include "media/base/media_switches.h" |
| 63 #include "media/media_features.h" | 63 #include "media/media_features.h" |
| 64 #include "mojo/edk/embedder/embedder.h" | 64 #include "mojo/edk/embedder/embedder.h" |
| 65 #include "services/service_manager/public/cpp/binder_registry.h" | 65 #include "services/service_manager/public/cpp/binder_registry.h" |
| 66 #include "services/service_manager/public/cpp/interface_provider.h" | 66 #include "services/service_manager/public/cpp/interface_provider.h" |
| 67 #include "services/service_manager/runner/common/client_util.h" | 67 #include "services/service_manager/runner/common/client_util.h" |
| 68 #include "ui/display/display_switches.h" | 68 #include "ui/display/display_switches.h" |
| 69 #include "ui/gfx/color_space_switches.h" |
| 69 #include "ui/gfx/switches.h" | 70 #include "ui/gfx/switches.h" |
| 70 #include "ui/gl/gl_switches.h" | 71 #include "ui/gl/gl_switches.h" |
| 71 #include "ui/latency/latency_info.h" | 72 #include "ui/latency/latency_info.h" |
| 72 | 73 |
| 73 #if defined(OS_ANDROID) | 74 #if defined(OS_ANDROID) |
| 74 #include "base/android/build_info.h" | 75 #include "base/android/build_info.h" |
| 75 #include "content/public/browser/android/java_interfaces.h" | 76 #include "content/public/browser/android/java_interfaces.h" |
| 76 #include "media/mojo/interfaces/android_overlay.mojom.h" | 77 #include "media/mojo/interfaces/android_overlay.mojom.h" |
| 77 #endif | 78 #endif |
| 78 | 79 |
| (...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 if (!cache.get()) | 1209 if (!cache.get()) |
| 1209 return; | 1210 return; |
| 1210 | 1211 |
| 1211 cache->set_shader_loaded_callback(base::Bind(&GpuProcessHost::LoadedShader, | 1212 cache->set_shader_loaded_callback(base::Bind(&GpuProcessHost::LoadedShader, |
| 1212 weak_ptr_factory_.GetWeakPtr())); | 1213 weak_ptr_factory_.GetWeakPtr())); |
| 1213 | 1214 |
| 1214 client_id_to_shader_cache_[client_id] = cache; | 1215 client_id_to_shader_cache_[client_id] = cache; |
| 1215 } | 1216 } |
| 1216 | 1217 |
| 1217 } // namespace content | 1218 } // namespace content |
| OLD | NEW |