Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 2832633002: Add PDF compositor service (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | printing/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 const std::string& lang = 1012 const std::string& lang =
1013 parsed_command_line.GetSwitchValueASCII(switches::kLang); 1013 parsed_command_line.GetSwitchValueASCII(switches::kLang);
1014 DCHECK(!lang.empty()); 1014 DCHECK(!lang.empty());
1015 return lang; 1015 return lang;
1016 } 1016 }
1017 1017
1018 IPC::SyncMessageFilter* RenderThreadImpl::GetSyncMessageFilter() { 1018 IPC::SyncMessageFilter* RenderThreadImpl::GetSyncMessageFilter() {
1019 return sync_message_filter(); 1019 return sync_message_filter();
1020 } 1020 }
1021 1021
1022 scoped_refptr<base::SingleThreadTaskRunner>
1023 RenderThreadImpl::GetIOTaskRunner() {
1024 return ChildProcess::current()->io_task_runner();
1025 }
1026
1027 void RenderThreadImpl::AddRoute(int32_t routing_id, IPC::Listener* listener) { 1022 void RenderThreadImpl::AddRoute(int32_t routing_id, IPC::Listener* listener) {
1028 ChildThreadImpl::GetRouter()->AddRoute(routing_id, listener); 1023 ChildThreadImpl::GetRouter()->AddRoute(routing_id, listener);
1029 auto it = pending_frame_creates_.find(routing_id); 1024 auto it = pending_frame_creates_.find(routing_id);
1030 if (it == pending_frame_creates_.end()) 1025 if (it == pending_frame_creates_.end())
1031 return; 1026 return;
1032 1027
1033 RenderFrameImpl* frame = RenderFrameImpl::FromRoutingID(routing_id); 1028 RenderFrameImpl* frame = RenderFrameImpl::FromRoutingID(routing_id);
1034 if (!frame) 1029 if (!frame)
1035 return; 1030 return;
1036 1031
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 1525
1531 void RenderThreadImpl::OnAssociatedInterfaceRequest( 1526 void RenderThreadImpl::OnAssociatedInterfaceRequest(
1532 const std::string& name, 1527 const std::string& name,
1533 mojo::ScopedInterfaceEndpointHandle handle) { 1528 mojo::ScopedInterfaceEndpointHandle handle) {
1534 if (associated_interfaces_.CanBindRequest(name)) 1529 if (associated_interfaces_.CanBindRequest(name))
1535 associated_interfaces_.BindRequest(name, std::move(handle)); 1530 associated_interfaces_.BindRequest(name, std::move(handle));
1536 else 1531 else
1537 ChildThreadImpl::OnAssociatedInterfaceRequest(name, std::move(handle)); 1532 ChildThreadImpl::OnAssociatedInterfaceRequest(name, std::move(handle));
1538 } 1533 }
1539 1534
1535 scoped_refptr<base::SingleThreadTaskRunner>
1536 RenderThreadImpl::GetIOTaskRunner() {
1537 return ChildProcess::current()->io_task_runner();
1538 }
1539
1540 bool RenderThreadImpl::IsGpuRasterizationForced() { 1540 bool RenderThreadImpl::IsGpuRasterizationForced() {
1541 return is_gpu_rasterization_forced_; 1541 return is_gpu_rasterization_forced_;
1542 } 1542 }
1543 1543
1544 bool RenderThreadImpl::IsAsyncWorkerContextEnabled() { 1544 bool RenderThreadImpl::IsAsyncWorkerContextEnabled() {
1545 return is_async_worker_context_enabled_; 1545 return is_async_worker_context_enabled_;
1546 } 1546 }
1547 1547
1548 int RenderThreadImpl::GetGpuRasterizationMSAASampleCount() { 1548 int RenderThreadImpl::GetGpuRasterizationMSAASampleCount() {
1549 return gpu_rasterization_msaa_sample_count_; 1549 return gpu_rasterization_msaa_sample_count_;
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
2458 } 2458 }
2459 } 2459 }
2460 2460
2461 void RenderThreadImpl::OnRendererInterfaceRequest( 2461 void RenderThreadImpl::OnRendererInterfaceRequest(
2462 mojom::RendererAssociatedRequest request) { 2462 mojom::RendererAssociatedRequest request) {
2463 DCHECK(!renderer_binding_.is_bound()); 2463 DCHECK(!renderer_binding_.is_bound());
2464 renderer_binding_.Bind(std::move(request)); 2464 renderer_binding_.Bind(std::move(request));
2465 } 2465 }
2466 2466
2467 } // namespace content 2467 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | printing/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698