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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 bool should_auto_resize() { return should_auto_resize_; } | 535 bool should_auto_resize() { return should_auto_resize_; } |
536 | 536 |
537 void ComputeTouchLatency(const ui::LatencyInfo& latency_info); | 537 void ComputeTouchLatency(const ui::LatencyInfo& latency_info); |
538 void FrameSwapped(const ui::LatencyInfo& latency_info); | 538 void FrameSwapped(const ui::LatencyInfo& latency_info); |
539 void DidReceiveRendererFrame(); | 539 void DidReceiveRendererFrame(); |
540 | 540 |
541 // Returns the ID that uniquely describes this component to the latency | 541 // Returns the ID that uniquely describes this component to the latency |
542 // subsystem. | 542 // subsystem. |
543 int64 GetLatencyComponentId(); | 543 int64 GetLatencyComponentId(); |
544 | 544 |
545 static void CompositorFrameDrawn(const ui::LatencyInfo& latency_info); | 545 static void CompositorFrameDrawn( |
| 546 const std::vector<ui::LatencyInfo>& latency_info); |
546 | 547 |
547 // Don't check whether we expected a resize ack during layout tests. | 548 // Don't check whether we expected a resize ack during layout tests. |
548 static void DisableResizeAckCheckForTesting(); | 549 static void DisableResizeAckCheckForTesting(); |
549 | 550 |
550 protected: | 551 protected: |
551 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; | 552 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; |
552 | 553 |
553 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT | 554 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT |
554 // component if it is not already in |original|. And if |original| is | 555 // component if it is not already in |original|. And if |original| is |
555 // not NULL, it is also merged into the resulting LatencyInfo. | 556 // not NULL, it is also merged into the resulting LatencyInfo. |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 int64 last_input_number_; | 923 int64 last_input_number_; |
923 | 924 |
924 BrowserRenderingStats rendering_stats_; | 925 BrowserRenderingStats rendering_stats_; |
925 | 926 |
926 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 927 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
927 }; | 928 }; |
928 | 929 |
929 } // namespace content | 930 } // namespace content |
930 | 931 |
931 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 932 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |