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 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1212 // Top controls are only used in threaded mode. | 1212 // Top controls are only used in threaded mode. |
1213 proxy_->ImplThreadTaskRunner()->PostTask( | 1213 proxy_->ImplThreadTaskRunner()->PostTask( |
1214 FROM_HERE, | 1214 FROM_HERE, |
1215 base::Bind(&TopControlsManager::UpdateTopControlsState, | 1215 base::Bind(&TopControlsManager::UpdateTopControlsState, |
1216 top_controls_manager_weak_ptr_, | 1216 top_controls_manager_weak_ptr_, |
1217 constraints, | 1217 constraints, |
1218 current, | 1218 current, |
1219 animate)); | 1219 animate)); |
1220 } | 1220 } |
1221 | 1221 |
1222 void LayerTreeHost::AsValueInto(base::debug::TracedValue* state) const { | 1222 void LayerTreeHost::AsValueInto(base::trace_event::TracedValue* state) const { |
1223 state->BeginDictionary("proxy"); | 1223 state->BeginDictionary("proxy"); |
1224 proxy_->AsValueInto(state); | 1224 proxy_->AsValueInto(state); |
1225 state->EndDictionary(); | 1225 state->EndDictionary(); |
1226 } | 1226 } |
1227 | 1227 |
1228 void LayerTreeHost::AnimateLayers(base::TimeTicks monotonic_time) { | 1228 void LayerTreeHost::AnimateLayers(base::TimeTicks monotonic_time) { |
1229 if (!settings_.accelerated_animation_enabled || | 1229 if (!settings_.accelerated_animation_enabled || |
1230 animation_registrar_->active_animation_controllers().empty()) | 1230 animation_registrar_->active_animation_controllers().empty()) |
1231 return; | 1231 return; |
1232 | 1232 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1370 bool children_need_begin_frames) const { | 1370 bool children_need_begin_frames) const { |
1371 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames); | 1371 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames); |
1372 } | 1372 } |
1373 | 1373 |
1374 void LayerTreeHost::SendBeginFramesToChildren( | 1374 void LayerTreeHost::SendBeginFramesToChildren( |
1375 const BeginFrameArgs& args) const { | 1375 const BeginFrameArgs& args) const { |
1376 client_->SendBeginFramesToChildren(args); | 1376 client_->SendBeginFramesToChildren(args); |
1377 } | 1377 } |
1378 | 1378 |
1379 } // namespace cc | 1379 } // namespace cc |
OLD | NEW |