| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 void RenderFrameImpl::OnBuffersSwapped( | 480 void RenderFrameImpl::OnBuffersSwapped( |
| 481 const FrameMsg_BuffersSwapped_Params& params) { | 481 const FrameMsg_BuffersSwapped_Params& params) { |
| 482 if (!compositing_helper_.get()) { | 482 if (!compositing_helper_.get()) { |
| 483 compositing_helper_ = | 483 compositing_helper_ = |
| 484 ChildFrameCompositingHelper::CreateCompositingHelperForRenderFrame( | 484 ChildFrameCompositingHelper::CreateCompositingHelperForRenderFrame( |
| 485 frame_, this, routing_id_); | 485 frame_, this, routing_id_); |
| 486 compositing_helper_->EnableCompositing(true); | 486 compositing_helper_->EnableCompositing(true); |
| 487 } | 487 } |
| 488 compositing_helper_->OnBuffersSwapped( | 488 compositing_helper_->OnBuffersSwapped( |
| 489 params.size, | 489 params.size, |
| 490 params.mailbox, | 490 params.mailbox_name, |
| 491 params.gpu_route_id, | 491 params.gpu_route_id, |
| 492 params.gpu_host_id, | 492 params.gpu_host_id, |
| 493 render_view_->GetWebView()->deviceScaleFactor()); | 493 render_view_->GetWebView()->deviceScaleFactor()); |
| 494 } | 494 } |
| 495 | 495 |
| 496 void RenderFrameImpl::OnCompositorFrameSwapped(const IPC::Message& message) { | 496 void RenderFrameImpl::OnCompositorFrameSwapped(const IPC::Message& message) { |
| 497 FrameMsg_CompositorFrameSwapped::Param param; | 497 FrameMsg_CompositorFrameSwapped::Param param; |
| 498 if (!FrameMsg_CompositorFrameSwapped::Read(&message, ¶m)) | 498 if (!FrameMsg_CompositorFrameSwapped::Read(&message, ¶m)) |
| 499 return; | 499 return; |
| 500 scoped_ptr<cc::CompositorFrame> frame(new cc::CompositorFrame); | 500 scoped_ptr<cc::CompositorFrame> frame(new cc::CompositorFrame); |
| (...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1954 | 1954 |
| 1955 void RenderFrameImpl::didStartLoading() { | 1955 void RenderFrameImpl::didStartLoading() { |
| 1956 Send(new FrameHostMsg_DidStartLoading(routing_id_)); | 1956 Send(new FrameHostMsg_DidStartLoading(routing_id_)); |
| 1957 } | 1957 } |
| 1958 | 1958 |
| 1959 void RenderFrameImpl::didStopLoading() { | 1959 void RenderFrameImpl::didStopLoading() { |
| 1960 Send(new FrameHostMsg_DidStopLoading(routing_id_)); | 1960 Send(new FrameHostMsg_DidStopLoading(routing_id_)); |
| 1961 } | 1961 } |
| 1962 | 1962 |
| 1963 } // namespace content | 1963 } // namespace content |
| OLD | NEW |