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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 task_runner); | 353 task_runner); |
354 #if defined(OS_ANDROID) | 354 #if defined(OS_ANDROID) |
355 registry_.AddInterface( | 355 registry_.AddInterface( |
356 base::Bind(&BindJavaInterface<media::mojom::AndroidOverlayProvider>), | 356 base::Bind(&BindJavaInterface<media::mojom::AndroidOverlayProvider>), |
357 task_runner); | 357 task_runner); |
358 #endif | 358 #endif |
359 } | 359 } |
360 | 360 |
361 private: | 361 private: |
362 // ConnectionFilter: | 362 // ConnectionFilter: |
363 void OnBindInterface(const service_manager::ServiceInfo& source_info, | 363 void OnBindInterface(const service_manager::BindSourceInfo& source_info, |
364 const std::string& interface_name, | 364 const std::string& interface_name, |
365 mojo::ScopedMessagePipeHandle* interface_pipe, | 365 mojo::ScopedMessagePipeHandle* interface_pipe, |
366 service_manager::Connector* connector) override { | 366 service_manager::Connector* connector) override { |
367 if (registry_.CanBindInterface(interface_name)) { | 367 if (registry_.CanBindInterface(interface_name)) { |
368 registry_.BindInterface(source_info.identity, interface_name, | 368 registry_.BindInterface(source_info.identity, interface_name, |
369 std::move(*interface_pipe)); | 369 std::move(*interface_pipe)); |
370 } else { | 370 } else { |
371 GetContentClient()->browser()->BindInterfaceRequest( | 371 GetContentClient()->browser()->BindInterfaceRequest( |
372 source_info, interface_name, interface_pipe); | 372 source_info, interface_name, interface_pipe); |
373 } | 373 } |
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1211 if (!cache.get()) | 1211 if (!cache.get()) |
1212 return; | 1212 return; |
1213 | 1213 |
1214 cache->set_shader_loaded_callback(base::Bind(&GpuProcessHost::LoadedShader, | 1214 cache->set_shader_loaded_callback(base::Bind(&GpuProcessHost::LoadedShader, |
1215 weak_ptr_factory_.GetWeakPtr())); | 1215 weak_ptr_factory_.GetWeakPtr())); |
1216 | 1216 |
1217 client_id_to_shader_cache_[client_id] = cache; | 1217 client_id_to_shader_cache_[client_id] = cache; |
1218 } | 1218 } |
1219 | 1219 |
1220 } // namespace content | 1220 } // namespace content |
OLD | NEW |