| 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/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1476 } | 1476 } |
| 1477 | 1477 |
| 1478 scoped_refptr<base::SingleThreadTaskRunner> | 1478 scoped_refptr<base::SingleThreadTaskRunner> |
| 1479 RenderThreadImpl::GetLoadingTaskRunner() { | 1479 RenderThreadImpl::GetLoadingTaskRunner() { |
| 1480 return renderer_scheduler_->LoadingTaskRunner(); | 1480 return renderer_scheduler_->LoadingTaskRunner(); |
| 1481 } | 1481 } |
| 1482 | 1482 |
| 1483 void RenderThreadImpl::OnAssociatedInterfaceRequest( | 1483 void RenderThreadImpl::OnAssociatedInterfaceRequest( |
| 1484 const std::string& name, | 1484 const std::string& name, |
| 1485 mojo::ScopedInterfaceEndpointHandle handle) { | 1485 mojo::ScopedInterfaceEndpointHandle handle) { |
| 1486 associated_interfaces_.BindRequest(name, std::move(handle)); | 1486 if (associated_interfaces_.CanBindRequest(name)) |
| 1487 associated_interfaces_.BindRequest(name, std::move(handle)); |
| 1488 else |
| 1489 ChildThreadImpl::OnAssociatedInterfaceRequest(name, std::move(handle)); |
| 1487 } | 1490 } |
| 1488 | 1491 |
| 1489 bool RenderThreadImpl::IsGpuRasterizationForced() { | 1492 bool RenderThreadImpl::IsGpuRasterizationForced() { |
| 1490 return is_gpu_rasterization_forced_; | 1493 return is_gpu_rasterization_forced_; |
| 1491 } | 1494 } |
| 1492 | 1495 |
| 1493 bool RenderThreadImpl::IsGpuRasterizationEnabled() { | 1496 bool RenderThreadImpl::IsGpuRasterizationEnabled() { |
| 1494 return is_gpu_rasterization_enabled_; | 1497 return is_gpu_rasterization_enabled_; |
| 1495 } | 1498 } |
| 1496 | 1499 |
| (...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2429 } | 2432 } |
| 2430 } | 2433 } |
| 2431 | 2434 |
| 2432 void RenderThreadImpl::OnRendererInterfaceRequest( | 2435 void RenderThreadImpl::OnRendererInterfaceRequest( |
| 2433 mojom::RendererAssociatedRequest request) { | 2436 mojom::RendererAssociatedRequest request) { |
| 2434 DCHECK(!renderer_binding_.is_bound()); | 2437 DCHECK(!renderer_binding_.is_bound()); |
| 2435 renderer_binding_.Bind(std::move(request)); | 2438 renderer_binding_.Bind(std::move(request)); |
| 2436 } | 2439 } |
| 2437 | 2440 |
| 2438 } // namespace content | 2441 } // namespace content |
| OLD | NEW |