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

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

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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_common_unittest.cc ('k') | cc/trees/layer_tree_host_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 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 void DidModifyTilePriorities(); 321 void DidModifyTilePriorities();
322 322
323 LayerTreeImpl* active_tree() { return active_tree_.get(); } 323 LayerTreeImpl* active_tree() { return active_tree_.get(); }
324 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } 324 const LayerTreeImpl* active_tree() const { return active_tree_.get(); }
325 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } 325 LayerTreeImpl* pending_tree() { return pending_tree_.get(); }
326 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } 326 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); }
327 LayerTreeImpl* recycle_tree() { return recycle_tree_.get(); } 327 LayerTreeImpl* recycle_tree() { return recycle_tree_.get(); }
328 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } 328 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); }
329 // Returns the tree LTH synchronizes with. 329 // Returns the tree LTH synchronizes with.
330 LayerTreeImpl* sync_tree() { 330 LayerTreeImpl* sync_tree() {
331 // TODO(enne): This is bogus. It should return based on the value of
332 // Proxy::CommitToActiveTree and not whether the pending tree exists.
333 return pending_tree_ ? pending_tree_.get() : active_tree_.get(); 331 return pending_tree_ ? pending_tree_.get() : active_tree_.get();
334 } 332 }
335 virtual void CreatePendingTree(); 333 virtual void CreatePendingTree();
336 virtual void ActivateSyncTree(); 334 virtual void ActivateSyncTree();
337 335
338 // Shortcuts to layers on the active tree. 336 // Shortcuts to layers on the active tree.
339 LayerImpl* RootLayer() const; 337 LayerImpl* RootLayer() const;
340 LayerImpl* InnerViewportScrollLayer() const; 338 LayerImpl* InnerViewportScrollLayer() const;
341 LayerImpl* OuterViewportScrollLayer() const; 339 LayerImpl* OuterViewportScrollLayer() const;
342 LayerImpl* CurrentlyScrollingLayer() const; 340 LayerImpl* CurrentlyScrollingLayer() const;
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 bool is_likely_to_require_a_draw_; 733 bool is_likely_to_require_a_draw_;
736 734
737 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 735 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
738 736
739 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 737 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
740 }; 738 };
741 739
742 } // namespace cc 740 } // namespace cc
743 741
744 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 742 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698