Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 2090223002: Clamp compositor's top controls shown ratio on commit from main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clamp from helper method Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 float ClampPageScaleFactorToLimits(float page_scale_factor) const; 490 float ClampPageScaleFactorToLimits(float page_scale_factor) const;
491 void PushPageScaleFactorAndLimits(const float* page_scale_factor, 491 void PushPageScaleFactorAndLimits(const float* page_scale_factor,
492 float min_page_scale_factor, 492 float min_page_scale_factor,
493 float max_page_scale_factor); 493 float max_page_scale_factor);
494 bool SetPageScaleFactorLimits(float min_page_scale_factor, 494 bool SetPageScaleFactorLimits(float min_page_scale_factor,
495 float max_page_scale_factor); 495 float max_page_scale_factor);
496 bool IsViewportLayerId(int id) const; 496 bool IsViewportLayerId(int id) const;
497 void UpdateScrollbars(int scroll_layer_id, int clip_layer_id); 497 void UpdateScrollbars(int scroll_layer_id, int clip_layer_id);
498 void DidUpdatePageScale(); 498 void DidUpdatePageScale();
499 void PushTopControls(const float* top_controls_shown_ratio); 499 void PushTopControls(const float* top_controls_shown_ratio);
500 bool ClampTopControlsShownRatio();
501
500 LayerTreeHostImpl* layer_tree_host_impl_; 502 LayerTreeHostImpl* layer_tree_host_impl_;
501 int source_frame_number_; 503 int source_frame_number_;
502 int is_first_frame_after_commit_tracker_; 504 int is_first_frame_after_commit_tracker_;
503 LayerImpl* root_layer_; 505 LayerImpl* root_layer_;
504 HeadsUpDisplayLayerImpl* hud_layer_; 506 HeadsUpDisplayLayerImpl* hud_layer_;
505 PropertyTrees property_trees_; 507 PropertyTrees property_trees_;
506 SkColor background_color_; 508 SkColor background_color_;
507 bool has_transparent_background_; 509 bool has_transparent_background_;
508 510
509 int last_scrolled_layer_id_; 511 int last_scrolled_layer_id_;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 587
586 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 588 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
587 589
588 private: 590 private:
589 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 591 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
590 }; 592 };
591 593
592 } // namespace cc 594 } // namespace cc
593 595
594 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 596 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698