OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/blimp/layer_tree_host_remote.h" | 5 #include "cc/blimp/layer_tree_host_remote.h" |
6 | 6 |
7 #include "base/atomic_sequence_num.h" | 7 #include "base/atomic_sequence_num.h" |
8 #include "base/auto_reset.h" | 8 #include "base/auto_reset.h" |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "cc/animation/animation_host.h" | 10 #include "cc/animation/animation_host.h" |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 return input_handler_weak_ptr_; | 228 return input_handler_weak_ptr_; |
229 } | 229 } |
230 | 230 |
231 void LayerTreeHostRemote::DidStopFlinging() { | 231 void LayerTreeHostRemote::DidStopFlinging() { |
232 // TODO(khushalsagar): This should not happen. See crbug.com/652000. | 232 // TODO(khushalsagar): This should not happen. See crbug.com/652000. |
233 NOTIMPLEMENTED() << "We shouldn't be sending fling gestures to the engine"; | 233 NOTIMPLEMENTED() << "We shouldn't be sending fling gestures to the engine"; |
234 } | 234 } |
235 | 235 |
236 void LayerTreeHostRemote::SetDebugState( | 236 void LayerTreeHostRemote::SetDebugState( |
237 const LayerTreeDebugState& debug_state) { | 237 const LayerTreeDebugState& debug_state) { |
238 // TODO(khushalsagar): Figure out if we need to send these to the client. | 238 // If any debugging needs to be enabled, ideally it should be using the |
239 NOTREACHED(); | 239 // compositor on the client directly. But the setup code will always set this |
| 240 // on initialization, even if the settings end up being a no-op. |
240 } | 241 } |
241 | 242 |
242 const LayerTreeDebugState& LayerTreeHostRemote::GetDebugState() const { | 243 const LayerTreeDebugState& LayerTreeHostRemote::GetDebugState() const { |
243 return debug_state_; | 244 return debug_state_; |
244 } | 245 } |
245 | 246 |
246 int LayerTreeHostRemote::ScheduleMicroBenchmark( | 247 int LayerTreeHostRemote::ScheduleMicroBenchmark( |
247 const std::string& benchmark_name, | 248 const std::string& benchmark_name, |
248 std::unique_ptr<base::Value> value, | 249 std::unique_ptr<base::Value> value, |
249 const MicroBenchmark::DoneCallback& callback) { | 250 const MicroBenchmark::DoneCallback& callback) { |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 layer_tree_host_proto->mutable_layer_updates(), inputs_only); | 492 layer_tree_host_proto->mutable_layer_updates(), inputs_only); |
492 layer_tree_->LayersThatShouldPushProperties().clear(); | 493 layer_tree_->LayersThatShouldPushProperties().clear(); |
493 | 494 |
494 std::vector<PictureData> pictures = | 495 std::vector<PictureData> pictures = |
495 engine_picture_cache_->CalculateCacheUpdateAndFlush(); | 496 engine_picture_cache_->CalculateCacheUpdateAndFlush(); |
496 proto::PictureDataVectorToSkPicturesProto( | 497 proto::PictureDataVectorToSkPicturesProto( |
497 pictures, layer_tree_host_proto->mutable_pictures()); | 498 pictures, layer_tree_host_proto->mutable_pictures()); |
498 } | 499 } |
499 | 500 |
500 } // namespace cc | 501 } // namespace cc |
OLD | NEW |