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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 // So this is used to have the compositor activate the pending tree faster, so | 208 // So this is used to have the compositor activate the pending tree faster, so |
209 // the pending commit can be processed. | 209 // the pending commit can be processed. |
210 // In remote mode, we don't send such notifications to the client because the | 210 // In remote mode, we don't send such notifications to the client because the |
211 // most likely bottleneck is the transport instead of raster. Also, input is | 211 // most likely bottleneck is the transport instead of raster. Also, input is |
212 // queued on the client, so if raster does end up being a bottleneck, the | 212 // queued on the client, so if raster does end up being a bottleneck, the |
213 // input handling code on the client informs the LayerTreeHostInProcess | 213 // input handling code on the client informs the LayerTreeHostInProcess |
214 // directly. | 214 // directly. |
215 NOTIMPLEMENTED(); | 215 NOTIMPLEMENTED(); |
216 } | 216 } |
217 | 217 |
218 void LayerTreeHostRemote::UpdateTopControlsState(TopControlsState constraints, | 218 void LayerTreeHostRemote::UpdateBrowserControlsState( |
219 TopControlsState current, | 219 BrowserControlsState constraints, |
220 bool animate) { | 220 BrowserControlsState current, |
221 NOTREACHED() << "Using TopControls animations is not supported"; | 221 bool animate) { |
| 222 NOTREACHED() << "Using BrowserControls animations is not supported"; |
222 } | 223 } |
223 | 224 |
224 const base::WeakPtr<InputHandler>& LayerTreeHostRemote::GetInputHandler() | 225 const base::WeakPtr<InputHandler>& LayerTreeHostRemote::GetInputHandler() |
225 const { | 226 const { |
226 // Input on the compositor thread is handled on the client, so this is always | 227 // Input on the compositor thread is handled on the client, so this is always |
227 // null. | 228 // null. |
228 return input_handler_weak_ptr_; | 229 return input_handler_weak_ptr_; |
229 } | 230 } |
230 | 231 |
231 void LayerTreeHostRemote::DidStopFlinging() { | 232 void LayerTreeHostRemote::DidStopFlinging() { |
(...skipping 259 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 |