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

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

Issue 2842553003: Call SAC::DidScrollUpdate only for compositor-triggered scrolls. (Closed)
Patch Set: rebase Created 3 years, 7 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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 event_properties; 457 event_properties;
458 } 458 }
459 459
460 void ResetAllChangeTracking(); 460 void ResetAllChangeTracking();
461 461
462 void AddToLayerList(LayerImpl* layer); 462 void AddToLayerList(LayerImpl* layer);
463 463
464 void ClearLayerList(); 464 void ClearLayerList();
465 465
466 void BuildLayerListForTesting(); 466 void BuildLayerListForTesting();
467 void HandleScrollbarShowRequestsFromMain();
467 468
468 void InvalidateRegionForImages(const ImageIdFlatSet& images_to_invalidate); 469 void InvalidateRegionForImages(const ImageIdFlatSet& images_to_invalidate);
469 470
470 protected: 471 protected:
471 float ClampPageScaleFactorToLimits(float page_scale_factor) const; 472 float ClampPageScaleFactorToLimits(float page_scale_factor) const;
472 void PushPageScaleFactorAndLimits(const float* page_scale_factor, 473 void PushPageScaleFactorAndLimits(const float* page_scale_factor,
473 float min_page_scale_factor, 474 float min_page_scale_factor,
474 float max_page_scale_factor); 475 float max_page_scale_factor);
475 bool SetPageScaleFactorLimits(float min_page_scale_factor, 476 bool SetPageScaleFactorLimits(float min_page_scale_factor,
476 float max_page_scale_factor); 477 float max_page_scale_factor);
477 bool IsViewportLayerId(int id) const; 478 bool IsViewportLayerId(int id) const;
478 void UpdateScrollbars(int scroll_layer_id, int clip_layer_id); 479 void UpdateScrollbars(int scroll_layer_id, int clip_layer_id);
479 void ShowScrollbars();
480 void DidUpdatePageScale(); 480 void DidUpdatePageScale();
481 void PushBrowserControls(const float* top_controls_shown_ratio); 481 void PushBrowserControls(const float* top_controls_shown_ratio);
482 bool ClampBrowserControlsShownRatio(); 482 bool ClampBrowserControlsShownRatio();
483 483
484 LayerTreeHostImpl* layer_tree_host_impl_; 484 LayerTreeHostImpl* layer_tree_host_impl_;
485 int source_frame_number_; 485 int source_frame_number_;
486 int is_first_frame_after_commit_tracker_; 486 int is_first_frame_after_commit_tracker_;
487 LayerImpl* root_layer_for_testing_; 487 LayerImpl* root_layer_for_testing_;
488 HeadsUpDisplayLayerImpl* hud_layer_; 488 HeadsUpDisplayLayerImpl* hud_layer_;
489 PropertyTrees property_trees_; 489 PropertyTrees property_trees_;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 582
583 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 583 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
584 584
585 private: 585 private:
586 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 586 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
587 }; 587 };
588 588
589 } // namespace cc 589 } // namespace cc
590 590
591 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 591 #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