| 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 return max_size_for_auto_resize_; | 448 return max_size_for_auto_resize_; |
| 449 } | 449 } |
| 450 | 450 |
| 451 void FrameSwapped(const ui::LatencyInfo& latency_info); | 451 void FrameSwapped(const ui::LatencyInfo& latency_info); |
| 452 void DidReceiveRendererFrame(); | 452 void DidReceiveRendererFrame(); |
| 453 | 453 |
| 454 // Returns the ID that uniquely describes this component to the latency | 454 // Returns the ID that uniquely describes this component to the latency |
| 455 // subsystem. | 455 // subsystem. |
| 456 int64 GetLatencyComponentId() const; | 456 int64 GetLatencyComponentId() const; |
| 457 | 457 |
| 458 base::TimeDelta GetEstimatedBrowserCompositeTime() const; |
| 459 |
| 458 static void CompositorFrameDrawn( | 460 static void CompositorFrameDrawn( |
| 459 const std::vector<ui::LatencyInfo>& latency_info); | 461 const std::vector<ui::LatencyInfo>& latency_info); |
| 460 | 462 |
| 461 // Don't check whether we expected a resize ack during layout tests. | 463 // Don't check whether we expected a resize ack during layout tests. |
| 462 static void DisableResizeAckCheckForTesting(); | 464 static void DisableResizeAckCheckForTesting(); |
| 463 | 465 |
| 464 void WindowSnapshotAsyncCallback( | 466 void WindowSnapshotAsyncCallback( |
| 465 int routing_id, | 467 int routing_id, |
| 466 int snapshot_id, | 468 int snapshot_id, |
| 467 gfx::Size snapshot_size, | 469 gfx::Size snapshot_size, |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 PendingSnapshotMap pending_browser_snapshots_; | 826 PendingSnapshotMap pending_browser_snapshots_; |
| 825 | 827 |
| 826 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 828 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 827 | 829 |
| 828 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 830 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 829 }; | 831 }; |
| 830 | 832 |
| 831 } // namespace content | 833 } // namespace content |
| 832 | 834 |
| 833 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 835 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |