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

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

Issue 873473006: cc: Commit directly to active tree when using single thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 LayerTreeHostImplClient* client_; 531 LayerTreeHostImplClient* client_;
532 Proxy* proxy_; 532 Proxy* proxy_;
533 533
534 private: 534 private:
535 void CreateAndSetRenderer(); 535 void CreateAndSetRenderer();
536 void CreateAndSetTileManager(); 536 void CreateAndSetTileManager();
537 void DestroyTileManager(); 537 void DestroyTileManager();
538 void ReleaseTreeResources(); 538 void ReleaseTreeResources();
539 void EnforceZeroBudget(bool zero_budget); 539 void EnforceZeroBudget(bool zero_budget);
540 540
541 bool UsePendingTreeForSync() const;
542 bool IsSynchronousSingleThreaded() const; 541 bool IsSynchronousSingleThreaded() const;
543 542
544 // Scroll by preferring to move the outer viewport first, only moving the 543 // Scroll by preferring to move the outer viewport first, only moving the
545 // inner if the outer is at its scroll extents. 544 // inner if the outer is at its scroll extents.
546 void ScrollViewportBy(gfx::Vector2dF scroll_delta); 545 void ScrollViewportBy(gfx::Vector2dF scroll_delta);
547 // Scroll by preferring to move the inner viewport first, only moving the 546 // Scroll by preferring to move the inner viewport first, only moving the
548 // outer if the inner is at its scroll extents. 547 // outer if the inner is at its scroll extents.
549 void ScrollViewportInnerFirst(gfx::Vector2dF scroll_delta); 548 void ScrollViewportInnerFirst(gfx::Vector2dF scroll_delta);
550 void AnimatePageScale(base::TimeTicks monotonic_time); 549 void AnimatePageScale(base::TimeTicks monotonic_time);
551 void AnimateScrollbars(base::TimeTicks monotonic_time); 550 void AnimateScrollbars(base::TimeTicks monotonic_time);
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 725
727 bool requires_high_res_to_draw_; 726 bool requires_high_res_to_draw_;
728 bool required_for_draw_tile_is_top_of_raster_queue_; 727 bool required_for_draw_tile_is_top_of_raster_queue_;
729 728
730 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 729 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
731 }; 730 };
732 731
733 } // namespace cc 732 } // namespace cc
734 733
735 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 734 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698