| 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 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1037 // TODO(ccameron): pass the elastic overscroll here so that input events | 1037 // TODO(ccameron): pass the elastic overscroll here so that input events |
| 1038 // may be translated appropriately. | 1038 // may be translated appropriately. |
| 1039 client_->ApplyViewportDeltas( | 1039 client_->ApplyViewportDeltas( |
| 1040 inner_viewport_scroll_delta, outer_viewport_scroll_delta, | 1040 inner_viewport_scroll_delta, outer_viewport_scroll_delta, |
| 1041 info->elastic_overscroll_delta, info->page_scale_delta, | 1041 info->elastic_overscroll_delta, info->page_scale_delta, |
| 1042 info->top_controls_delta); | 1042 info->top_controls_delta); |
| 1043 } | 1043 } |
| 1044 } | 1044 } |
| 1045 } | 1045 } |
| 1046 | 1046 |
| 1047 void LayerTreeHost::RecordCompositeTimings( |
| 1048 FrameTimingTracker::CompositeTimingSet* info) { |
| 1049 client_->RecordCompositeTimings(info); |
| 1050 } |
| 1051 |
| 1052 void LayerTreeHost::RecordRenderTimings( |
| 1053 FrameTimingTracker::MainFrameTimingSet* info) { |
| 1054 client_->RecordRenderTimings(info); |
| 1055 } |
| 1056 |
| 1047 void LayerTreeHost::StartRateLimiter() { | 1057 void LayerTreeHost::StartRateLimiter() { |
| 1048 if (inside_begin_main_frame_) | 1058 if (inside_begin_main_frame_) |
| 1049 return; | 1059 return; |
| 1050 | 1060 |
| 1051 if (!rate_limit_timer_.IsRunning()) { | 1061 if (!rate_limit_timer_.IsRunning()) { |
| 1052 rate_limit_timer_.Start(FROM_HERE, | 1062 rate_limit_timer_.Start(FROM_HERE, |
| 1053 base::TimeDelta(), | 1063 base::TimeDelta(), |
| 1054 this, | 1064 this, |
| 1055 &LayerTreeHost::RateLimit); | 1065 &LayerTreeHost::RateLimit); |
| 1056 } | 1066 } |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 const BeginFrameArgs& args) const { | 1265 const BeginFrameArgs& args) const { |
| 1256 client_->SendBeginFramesToChildren(args); | 1266 client_->SendBeginFramesToChildren(args); |
| 1257 } | 1267 } |
| 1258 | 1268 |
| 1259 void LayerTreeHost::SetAuthoritativeVSyncInterval( | 1269 void LayerTreeHost::SetAuthoritativeVSyncInterval( |
| 1260 const base::TimeDelta& interval) { | 1270 const base::TimeDelta& interval) { |
| 1261 proxy_->SetAuthoritativeVSyncInterval(interval); | 1271 proxy_->SetAuthoritativeVSyncInterval(interval); |
| 1262 } | 1272 } |
| 1263 | 1273 |
| 1264 } // namespace cc | 1274 } // namespace cc |
| OLD | NEW |