OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 "cc/trees/layer_tree_host.h" | 5 #include "cc/trees/layer_tree_host.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <stack> | 8 #include <stack> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1083 // TODO(ccameron): pass the elastic overscroll here so that input events | 1083 // TODO(ccameron): pass the elastic overscroll here so that input events |
1084 // may be translated appropriately. | 1084 // may be translated appropriately. |
1085 client_->ApplyViewportDeltas( | 1085 client_->ApplyViewportDeltas( |
1086 inner_viewport_scroll_delta, outer_viewport_scroll_delta, | 1086 inner_viewport_scroll_delta, outer_viewport_scroll_delta, |
1087 info->elastic_overscroll_delta, info->page_scale_delta, | 1087 info->elastic_overscroll_delta, info->page_scale_delta, |
1088 info->top_controls_delta); | 1088 info->top_controls_delta); |
1089 } | 1089 } |
1090 } | 1090 } |
1091 } | 1091 } |
1092 | 1092 |
| 1093 void LayerTreeHost::RecordCompositeTimings( |
| 1094 FrameTimingTracker::CompositeTimingSet* info) { |
| 1095 client_->RecordCompositeTimings(info); |
| 1096 } |
| 1097 |
| 1098 void LayerTreeHost::RecordRenderTimings( |
| 1099 FrameTimingTracker::MainFrameTimingSet* info) { |
| 1100 client_->RecordRenderTimings(info); |
| 1101 } |
| 1102 |
1093 void LayerTreeHost::StartRateLimiter() { | 1103 void LayerTreeHost::StartRateLimiter() { |
1094 if (inside_begin_main_frame_) | 1104 if (inside_begin_main_frame_) |
1095 return; | 1105 return; |
1096 | 1106 |
1097 if (!rate_limit_timer_.IsRunning()) { | 1107 if (!rate_limit_timer_.IsRunning()) { |
1098 rate_limit_timer_.Start(FROM_HERE, | 1108 rate_limit_timer_.Start(FROM_HERE, |
1099 base::TimeDelta(), | 1109 base::TimeDelta(), |
1100 this, | 1110 this, |
1101 &LayerTreeHost::RateLimit); | 1111 &LayerTreeHost::RateLimit); |
1102 } | 1112 } |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1301 const BeginFrameArgs& args) const { | 1311 const BeginFrameArgs& args) const { |
1302 client_->SendBeginFramesToChildren(args); | 1312 client_->SendBeginFramesToChildren(args); |
1303 } | 1313 } |
1304 | 1314 |
1305 void LayerTreeHost::SetAuthoritativeVSyncInterval( | 1315 void LayerTreeHost::SetAuthoritativeVSyncInterval( |
1306 const base::TimeDelta& interval) { | 1316 const base::TimeDelta& interval) { |
1307 proxy_->SetAuthoritativeVSyncInterval(interval); | 1317 proxy_->SetAuthoritativeVSyncInterval(interval); |
1308 } | 1318 } |
1309 | 1319 |
1310 } // namespace cc | 1320 } // namespace cc |
OLD | NEW |