| 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 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1478 } | 1478 } |
| 1479 | 1479 |
| 1480 scoped_refptr<base::SingleThreadTaskRunner> | 1480 scoped_refptr<base::SingleThreadTaskRunner> |
| 1481 RenderThreadImpl::GetLoadingTaskRunner() { | 1481 RenderThreadImpl::GetLoadingTaskRunner() { |
| 1482 return renderer_scheduler_->LoadingTaskRunner(); | 1482 return renderer_scheduler_->LoadingTaskRunner(); |
| 1483 } | 1483 } |
| 1484 | 1484 |
| 1485 void RenderThreadImpl::OnAssociatedInterfaceRequest( | 1485 void RenderThreadImpl::OnAssociatedInterfaceRequest( |
| 1486 const std::string& name, | 1486 const std::string& name, |
| 1487 mojo::ScopedInterfaceEndpointHandle handle) { | 1487 mojo::ScopedInterfaceEndpointHandle handle) { |
| 1488 associated_interfaces_.BindRequest(name, std::move(handle)); | 1488 if (associated_interfaces_.CanBindRequest(name)) |
| 1489 associated_interfaces_.BindRequest(name, std::move(handle)); |
| 1490 else |
| 1491 ChildThreadImpl::OnAssociatedInterfaceRequest(name, std::move(handle)); |
| 1489 } | 1492 } |
| 1490 | 1493 |
| 1491 bool RenderThreadImpl::IsGpuRasterizationForced() { | 1494 bool RenderThreadImpl::IsGpuRasterizationForced() { |
| 1492 return is_gpu_rasterization_forced_; | 1495 return is_gpu_rasterization_forced_; |
| 1493 } | 1496 } |
| 1494 | 1497 |
| 1495 bool RenderThreadImpl::IsGpuRasterizationEnabled() { | 1498 bool RenderThreadImpl::IsGpuRasterizationEnabled() { |
| 1496 return is_gpu_rasterization_enabled_; | 1499 return is_gpu_rasterization_enabled_; |
| 1497 } | 1500 } |
| 1498 | 1501 |
| (...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2436 } | 2439 } |
| 2437 } | 2440 } |
| 2438 | 2441 |
| 2439 void RenderThreadImpl::OnRendererInterfaceRequest( | 2442 void RenderThreadImpl::OnRendererInterfaceRequest( |
| 2440 mojom::RendererAssociatedRequest request) { | 2443 mojom::RendererAssociatedRequest request) { |
| 2441 DCHECK(!renderer_binding_.is_bound()); | 2444 DCHECK(!renderer_binding_.is_bound()); |
| 2442 renderer_binding_.Bind(std::move(request)); | 2445 renderer_binding_.Bind(std::move(request)); |
| 2443 } | 2446 } |
| 2444 | 2447 |
| 2445 } // namespace content | 2448 } // namespace content |
| OLD | NEW |