OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 return top_controls_shown_ratio_->Current(IsActiveTree()); | 319 return top_controls_shown_ratio_->Current(IsActiveTree()); |
320 } | 320 } |
321 void set_top_controls_height(float top_controls_height); | 321 void set_top_controls_height(float top_controls_height); |
322 float top_controls_height() const { return top_controls_height_; } | 322 float top_controls_height() const { return top_controls_height_; } |
323 void PushTopControlsFromMainThread(float top_controls_shown_ratio); | 323 void PushTopControlsFromMainThread(float top_controls_shown_ratio); |
324 | 324 |
325 void SetPendingPageScaleAnimation( | 325 void SetPendingPageScaleAnimation( |
326 scoped_ptr<PendingPageScaleAnimation> pending_animation); | 326 scoped_ptr<PendingPageScaleAnimation> pending_animation); |
327 scoped_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); | 327 scoped_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); |
328 | 328 |
| 329 void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids); |
| 330 |
329 protected: | 331 protected: |
330 explicit LayerTreeImpl( | 332 explicit LayerTreeImpl( |
331 LayerTreeHostImpl* layer_tree_host_impl, | 333 LayerTreeHostImpl* layer_tree_host_impl, |
332 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, | 334 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, |
333 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, | 335 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, |
334 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); | 336 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); |
335 void ProcessLayersRecursive(LayerImpl* current, | |
336 void (LayerImpl::*function)()); | |
337 float ClampPageScaleFactorToLimits(float page_scale_factor) const; | 337 float ClampPageScaleFactorToLimits(float page_scale_factor) const; |
338 void PushPageScaleFactorAndLimits(const float* page_scale_factor, | 338 void PushPageScaleFactorAndLimits(const float* page_scale_factor, |
339 float min_page_scale_factor, | 339 float min_page_scale_factor, |
340 float max_page_scale_factor); | 340 float max_page_scale_factor); |
341 bool SetPageScaleFactorLimits(float min_page_scale_factor, | 341 bool SetPageScaleFactorLimits(float min_page_scale_factor, |
342 float max_page_scale_factor); | 342 float max_page_scale_factor); |
343 void DidUpdatePageScale(); | 343 void DidUpdatePageScale(); |
344 void HideInnerViewportScrollbarsIfNearMinimumScale(); | 344 void HideInnerViewportScrollbarsIfNearMinimumScale(); |
345 void PushTopControls(const float* top_controls_shown_ratio); | 345 void PushTopControls(const float* top_controls_shown_ratio); |
346 LayerTreeHostImpl* layer_tree_host_impl_; | 346 LayerTreeHostImpl* layer_tree_host_impl_; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 | 412 |
413 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 413 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
414 | 414 |
415 private: | 415 private: |
416 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 416 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
417 }; | 417 }; |
418 | 418 |
419 } // namespace cc | 419 } // namespace cc |
420 | 420 |
421 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 421 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |