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 1969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1980 } | 1980 } |
1981 | 1981 |
1982 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1982 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
1983 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size); | 1983 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size); |
1984 } | 1984 } |
1985 | 1985 |
1986 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( | 1986 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( |
1987 const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params) { | 1987 const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params) { |
1988 TRACE_EVENT0("renderer_host", | 1988 TRACE_EVENT0("renderer_host", |
1989 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1989 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1990 if (!ui::LatencyInfo::Verify(params.latency_info, |
| 1991 "ViewHostMsg_CompositorSurfaceBuffersSwapped")) |
| 1992 return; |
1990 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1993 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
1991 ack_params.sync_point = 0; | 1994 ack_params.sync_point = 0; |
1992 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id, | 1995 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id, |
1993 params.gpu_process_host_id, | 1996 params.gpu_process_host_id, |
1994 ack_params); | 1997 ack_params); |
1995 } | 1998 } |
1996 | 1999 |
1997 void RenderProcessHostImpl::OnGpuSwitching() { | 2000 void RenderProcessHostImpl::OnGpuSwitching() { |
1998 // We are updating all widgets including swapped out ones. | 2001 // We are updating all widgets including swapped out ones. |
1999 scoped_ptr<RenderWidgetHostIterator> widgets( | 2002 scoped_ptr<RenderWidgetHostIterator> widgets( |
(...skipping 18 matching lines...) Expand all Loading... |
2018 return; | 2021 return; |
2019 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); | 2022 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); |
2020 } | 2023 } |
2021 | 2024 |
2022 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { | 2025 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { |
2023 Send(new MediaStreamMsg_DisableAecDump()); | 2026 Send(new MediaStreamMsg_DisableAecDump()); |
2024 } | 2027 } |
2025 #endif | 2028 #endif |
2026 | 2029 |
2027 } // namespace content | 2030 } // namespace content |
OLD | NEW |