| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/browser/frame_host/cross_process_frame_connector.h" | 5 #include "content/browser/frame_host/cross_process_frame_connector.h" |
| 6 | 6 |
| 7 #include "content/browser/frame_host/render_frame_host_impl.h" | 7 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 8 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" | 8 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
| 9 #include "content/browser/renderer_host/render_widget_host_impl.h" | 9 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 10 #include "content/common/frame_messages.h" | 10 #include "content/common/frame_messages.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 if (view_) | 46 if (view_) |
| 47 view_->set_cross_process_frame_connector(NULL); | 47 view_->set_cross_process_frame_connector(NULL); |
| 48 | 48 |
| 49 view_ = view; | 49 view_ = view; |
| 50 | 50 |
| 51 // Attach ourselves to the new view. | 51 // Attach ourselves to the new view. |
| 52 if (view_) | 52 if (view_) |
| 53 view_->set_cross_process_frame_connector(this); | 53 view_->set_cross_process_frame_connector(this); |
| 54 } | 54 } |
| 55 | 55 |
| 56 void CrossProcessFrameConnector::RenderProcessGone() { |
| 57 frame_proxy_in_parent_renderer_->Send(new FrameMsg_ChildFrameProcessGone( |
| 58 frame_proxy_in_parent_renderer_->routing_id())); |
| 59 } |
| 60 |
| 56 void CrossProcessFrameConnector::ChildFrameBuffersSwapped( | 61 void CrossProcessFrameConnector::ChildFrameBuffersSwapped( |
| 57 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& gpu_params, | 62 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& gpu_params, |
| 58 int gpu_host_id) { | 63 int gpu_host_id) { |
| 59 | 64 |
| 60 FrameMsg_BuffersSwapped_Params params; | 65 FrameMsg_BuffersSwapped_Params params; |
| 61 params.size = gpu_params.size; | 66 params.size = gpu_params.size; |
| 62 params.mailbox_name = gpu_params.mailbox_name; | 67 params.mailbox_name = gpu_params.mailbox_name; |
| 63 params.gpu_route_id = gpu_params.route_id; | 68 params.gpu_route_id = gpu_params.route_id; |
| 64 params.gpu_host_id = gpu_host_id; | 69 params.gpu_host_id = gpu_host_id; |
| 65 | 70 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 params.output_surface_id, | 114 params.output_surface_id, |
| 110 params.renderer_host_id, | 115 params.renderer_host_id, |
| 111 params.ack); | 116 params.ack); |
| 112 } | 117 } |
| 113 | 118 |
| 114 gfx::Rect CrossProcessFrameConnector::ChildFrameRect() { | 119 gfx::Rect CrossProcessFrameConnector::ChildFrameRect() { |
| 115 return child_frame_rect_; | 120 return child_frame_rect_; |
| 116 } | 121 } |
| 117 | 122 |
| 118 } // namespace content | 123 } // namespace content |
| OLD | NEW |