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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1472063007: mustash: enable GPU Compositing in renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review issues. Created 5 years 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 | « no previous file | content/browser/renderer_host/render_widget_host_view_mus.cc » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 #include "content/browser/tracing/trace_message_filter.h" 116 #include "content/browser/tracing/trace_message_filter.h"
117 #include "content/browser/webui/web_ui_controller_factory_registry.h" 117 #include "content/browser/webui/web_ui_controller_factory_registry.h"
118 #include "content/common/child_process_host_impl.h" 118 #include "content/common/child_process_host_impl.h"
119 #include "content/common/child_process_messages.h" 119 #include "content/common/child_process_messages.h"
120 #include "content/common/content_switches_internal.h" 120 #include "content/common/content_switches_internal.h"
121 #include "content/common/frame_messages.h" 121 #include "content/common/frame_messages.h"
122 #include "content/common/gpu/gpu_messages.h" 122 #include "content/common/gpu/gpu_messages.h"
123 #include "content/common/in_process_child_thread_params.h" 123 #include "content/common/in_process_child_thread_params.h"
124 #include "content/common/mojo/channel_init.h" 124 #include "content/common/mojo/channel_init.h"
125 #include "content/common/mojo/mojo_messages.h" 125 #include "content/common/mojo/mojo_messages.h"
126 #include "content/common/mojo/mojo_shell_connection_impl.h"
Fady Samuel 2015/12/02 16:42:11 This should also be behind an if defined...
Peng 2015/12/02 16:51:51 Done.
126 #include "content/common/render_process_messages.h" 127 #include "content/common/render_process_messages.h"
127 #include "content/common/resource_messages.h" 128 #include "content/common/resource_messages.h"
128 #include "content/common/site_isolation_policy.h" 129 #include "content/common/site_isolation_policy.h"
129 #include "content/common/view_messages.h" 130 #include "content/common/view_messages.h"
130 #include "content/public/browser/browser_context.h" 131 #include "content/public/browser/browser_context.h"
131 #include "content/public/browser/content_browser_client.h" 132 #include "content/public/browser/content_browser_client.h"
132 #include "content/public/browser/navigator_connect_context.h" 133 #include "content/public/browser/navigator_connect_context.h"
133 #include "content/public/browser/notification_service.h" 134 #include "content/public/browser/notification_service.h"
134 #include "content/public/browser/notification_types.h" 135 #include "content/public/browser/notification_types.h"
135 #include "content/public/browser/render_process_host_factory.h" 136 #include "content/public/browser/render_process_host_factory.h"
(...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after
1537 1538
1538 // Add kWaitForDebugger to let renderer process wait for a debugger. 1539 // Add kWaitForDebugger to let renderer process wait for a debugger.
1539 if (browser_cmd.HasSwitch(switches::kWaitForDebuggerChildren)) { 1540 if (browser_cmd.HasSwitch(switches::kWaitForDebuggerChildren)) {
1540 // Look to pass-on the kWaitForDebugger flag. 1541 // Look to pass-on the kWaitForDebugger flag.
1541 std::string value = 1542 std::string value =
1542 browser_cmd.GetSwitchValueASCII(switches::kWaitForDebuggerChildren); 1543 browser_cmd.GetSwitchValueASCII(switches::kWaitForDebuggerChildren);
1543 if (value.empty() || value == switches::kRendererProcess) { 1544 if (value.empty() || value == switches::kRendererProcess) {
1544 renderer_cmd->AppendSwitch(switches::kWaitForDebugger); 1545 renderer_cmd->AppendSwitch(switches::kWaitForDebugger);
1545 } 1546 }
1546 } 1547 }
1548
1549 #if defined(MOJO_SHELL_CLIENT)
1550 if (IsRunningInMojoShell())
1551 renderer_cmd->AppendSwitch(switches::kEnableMojoShellConnection);
1552 #endif
1547 } 1553 }
1548 1554
1549 base::ProcessHandle RenderProcessHostImpl::GetHandle() const { 1555 base::ProcessHandle RenderProcessHostImpl::GetHandle() const {
1550 if (run_renderer_in_process()) 1556 if (run_renderer_in_process())
1551 return base::GetCurrentProcessHandle(); 1557 return base::GetCurrentProcessHandle();
1552 1558
1553 if (!child_process_launcher_.get() || child_process_launcher_->IsStarting()) 1559 if (!child_process_launcher_.get() || child_process_launcher_->IsStarting())
1554 return base::kNullProcessHandle; 1560 return base::kNullProcessHandle;
1555 1561
1556 return child_process_launcher_->GetProcess().Handle(); 1562 return child_process_launcher_->GetProcess().Handle();
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after
2656 void RenderProcessHostImpl::GetAudioOutputControllers( 2662 void RenderProcessHostImpl::GetAudioOutputControllers(
2657 const GetAudioOutputControllersCallback& callback) const { 2663 const GetAudioOutputControllersCallback& callback) const {
2658 audio_renderer_host()->GetOutputControllers(callback); 2664 audio_renderer_host()->GetOutputControllers(callback);
2659 } 2665 }
2660 2666
2661 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2667 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2662 return bluetooth_dispatcher_host_.get(); 2668 return bluetooth_dispatcher_host_.get();
2663 } 2669 }
2664 2670
2665 } // namespace content 2671 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698