| 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 #include "content/browser/renderer_host/render_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1695 if (view_) { | 1695 if (view_) { |
| 1696 view_->OnSwapCompositorFrame(frame.Pass()); | 1696 view_->OnSwapCompositorFrame(frame.Pass()); |
| 1697 } else { | 1697 } else { |
| 1698 cc::CompositorFrameAck ack; | 1698 cc::CompositorFrameAck ack; |
| 1699 if (frame->gl_frame_data) { | 1699 if (frame->gl_frame_data) { |
| 1700 ack.gl_frame_data = frame->gl_frame_data.Pass(); | 1700 ack.gl_frame_data = frame->gl_frame_data.Pass(); |
| 1701 ack.gl_frame_data->sync_point = 0; | 1701 ack.gl_frame_data->sync_point = 0; |
| 1702 } else if (frame->delegated_frame_data) { | 1702 } else if (frame->delegated_frame_data) { |
| 1703 ack.resources.swap(frame->delegated_frame_data->resource_list); | 1703 ack.resources.swap(frame->delegated_frame_data->resource_list); |
| 1704 } else if (frame->software_frame_data) { | 1704 } else if (frame->software_frame_data) { |
| 1705 ack.last_dib_id = frame->software_frame_data->dib_id; | 1705 ack.last_software_frame_id = frame->software_frame_data->id; |
| 1706 } | 1706 } |
| 1707 SendSwapCompositorFrameAck(routing_id_, process_->GetID(), ack); | 1707 SendSwapCompositorFrameAck(routing_id_, process_->GetID(), ack); |
| 1708 } | 1708 } |
| 1709 return true; | 1709 return true; |
| 1710 } | 1710 } |
| 1711 | 1711 |
| 1712 void RenderWidgetHostImpl::OnOverscrolled( | 1712 void RenderWidgetHostImpl::OnOverscrolled( |
| 1713 gfx::Vector2dF accumulated_overscroll, | 1713 gfx::Vector2dF accumulated_overscroll, |
| 1714 gfx::Vector2dF current_fling_velocity) { | 1714 gfx::Vector2dF current_fling_velocity) { |
| 1715 if (view_) | 1715 if (view_) |
| (...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2498 } | 2498 } |
| 2499 | 2499 |
| 2500 void RenderWidgetHostImpl::DetachDelegate() { | 2500 void RenderWidgetHostImpl::DetachDelegate() { |
| 2501 delegate_ = NULL; | 2501 delegate_ = NULL; |
| 2502 } | 2502 } |
| 2503 | 2503 |
| 2504 void RenderWidgetHostImpl::FrameSwapped(const ui::LatencyInfo& latency_info) { | 2504 void RenderWidgetHostImpl::FrameSwapped(const ui::LatencyInfo& latency_info) { |
| 2505 } | 2505 } |
| 2506 | 2506 |
| 2507 } // namespace content | 2507 } // namespace content |
| OLD | NEW |