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 // 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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); | 506 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); |
507 | 507 |
508 // Spawn the child process asynchronously to avoid blocking the UI thread. | 508 // Spawn the child process asynchronously to avoid blocking the UI thread. |
509 // As long as there's no renderer prefix, we can use the zygote process | 509 // As long as there's no renderer prefix, we can use the zygote process |
510 // at this stage. | 510 // at this stage. |
511 child_process_launcher_.reset(new ChildProcessLauncher( | 511 child_process_launcher_.reset(new ChildProcessLauncher( |
512 #if defined(OS_WIN) | 512 #if defined(OS_WIN) |
513 FilePath(), | 513 FilePath(), |
514 #elif defined(OS_POSIX) | 514 #elif defined(OS_POSIX) |
515 renderer_prefix.empty(), | 515 renderer_prefix.empty(), |
| 516 GetID(), |
516 base::EnvironmentVector(), | 517 base::EnvironmentVector(), |
517 channel_->TakeClientFileDescriptor(), | 518 channel_->TakeClientFileDescriptor(), |
518 #endif | 519 #endif |
519 cmd_line, | 520 cmd_line, |
520 this)); | 521 this)); |
521 | 522 |
522 fast_shutdown_started_ = false; | 523 fast_shutdown_started_ = false; |
523 } | 524 } |
524 | 525 |
525 is_initialized_ = true; | 526 is_initialized_ = true; |
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1586 const gfx::Size& size, | 1587 const gfx::Size& size, |
1587 int32 gpu_process_host_id) { | 1588 int32 gpu_process_host_id) { |
1588 TRACE_EVENT0("renderer_host", | 1589 TRACE_EVENT0("renderer_host", |
1589 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1590 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1590 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1591 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1591 gpu_process_host_id, | 1592 gpu_process_host_id, |
1592 0); | 1593 0); |
1593 } | 1594 } |
1594 | 1595 |
1595 } // namespace content | 1596 } // namespace content |
OLD | NEW |