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

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
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 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 const std::string& lang = 994 const std::string& lang =
995 parsed_command_line.GetSwitchValueASCII(switches::kLang); 995 parsed_command_line.GetSwitchValueASCII(switches::kLang);
996 DCHECK(!lang.empty()); 996 DCHECK(!lang.empty());
997 return lang; 997 return lang;
998 } 998 }
999 999
1000 IPC::SyncMessageFilter* RenderThreadImpl::GetSyncMessageFilter() { 1000 IPC::SyncMessageFilter* RenderThreadImpl::GetSyncMessageFilter() {
1001 return sync_message_filter(); 1001 return sync_message_filter();
1002 } 1002 }
1003 1003
1004 scoped_refptr<base::SingleThreadTaskRunner>
1005 RenderThreadImpl::GetIOTaskRunner() {
1006 return ChildProcess::current()->io_task_runner();
1007 }
1008
1009 void RenderThreadImpl::AddRoute(int32_t routing_id, IPC::Listener* listener) { 1004 void RenderThreadImpl::AddRoute(int32_t routing_id, IPC::Listener* listener) {
1010 ChildThreadImpl::GetRouter()->AddRoute(routing_id, listener); 1005 ChildThreadImpl::GetRouter()->AddRoute(routing_id, listener);
1011 auto it = pending_frame_creates_.find(routing_id); 1006 auto it = pending_frame_creates_.find(routing_id);
1012 if (it == pending_frame_creates_.end()) 1007 if (it == pending_frame_creates_.end())
1013 return; 1008 return;
1014 1009
1015 RenderFrameImpl* frame = RenderFrameImpl::FromRoutingID(routing_id); 1010 RenderFrameImpl* frame = RenderFrameImpl::FromRoutingID(routing_id);
1016 if (!frame) 1011 if (!frame)
1017 return; 1012 return;
1018 1013
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1512 1507
1513 void RenderThreadImpl::OnAssociatedInterfaceRequest( 1508 void RenderThreadImpl::OnAssociatedInterfaceRequest(
1514 const std::string& name, 1509 const std::string& name,
1515 mojo::ScopedInterfaceEndpointHandle handle) { 1510 mojo::ScopedInterfaceEndpointHandle handle) {
1516 if (associated_interfaces_.CanBindRequest(name)) 1511 if (associated_interfaces_.CanBindRequest(name))
1517 associated_interfaces_.BindRequest(name, std::move(handle)); 1512 associated_interfaces_.BindRequest(name, std::move(handle));
1518 else 1513 else
1519 ChildThreadImpl::OnAssociatedInterfaceRequest(name, std::move(handle)); 1514 ChildThreadImpl::OnAssociatedInterfaceRequest(name, std::move(handle));
1520 } 1515 }
1521 1516
1517 scoped_refptr<base::SingleThreadTaskRunner>
1518 RenderThreadImpl::GetIOTaskRunner() {
1519 return ChildProcess::current()->io_task_runner();
1520 }
1521
1522 bool RenderThreadImpl::IsGpuRasterizationForced() { 1522 bool RenderThreadImpl::IsGpuRasterizationForced() {
1523 return is_gpu_rasterization_forced_; 1523 return is_gpu_rasterization_forced_;
1524 } 1524 }
1525 1525
1526 bool RenderThreadImpl::IsAsyncWorkerContextEnabled() { 1526 bool RenderThreadImpl::IsAsyncWorkerContextEnabled() {
1527 return is_async_worker_context_enabled_; 1527 return is_async_worker_context_enabled_;
1528 } 1528 }
1529 1529
1530 int RenderThreadImpl::GetGpuRasterizationMSAASampleCount() { 1530 int RenderThreadImpl::GetGpuRasterizationMSAASampleCount() {
1531 return gpu_rasterization_msaa_sample_count_; 1531 return gpu_rasterization_msaa_sample_count_;
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
2440 } 2440 }
2441 } 2441 }
2442 2442
2443 void RenderThreadImpl::OnRendererInterfaceRequest( 2443 void RenderThreadImpl::OnRendererInterfaceRequest(
2444 mojom::RendererAssociatedRequest request) { 2444 mojom::RendererAssociatedRequest request) {
2445 DCHECK(!renderer_binding_.is_bound()); 2445 DCHECK(!renderer_binding_.is_bound());
2446 renderer_binding_.Bind(std::move(request)); 2446 renderer_binding_.Bind(std::move(request));
2447 } 2447 }
2448 2448
2449 } // namespace content 2449 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698