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

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

Issue 19106007: cc: Allow the main thread to cancel commits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add more comments Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_unittest_scroll.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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 102 }
103 103
104 LayerImpl* RootScrollLayer() const; 104 LayerImpl* RootScrollLayer() const;
105 LayerImpl* RootContainerLayer() const; 105 LayerImpl* RootContainerLayer() const;
106 LayerImpl* CurrentlyScrollingLayer() const; 106 LayerImpl* CurrentlyScrollingLayer() const;
107 void SetCurrentlyScrollingLayer(LayerImpl* layer); 107 void SetCurrentlyScrollingLayer(LayerImpl* layer);
108 void ClearCurrentlyScrollingLayer(); 108 void ClearCurrentlyScrollingLayer();
109 109
110 void FindRootScrollLayer(); 110 void FindRootScrollLayer();
111 void UpdateMaxScrollOffset(); 111 void UpdateMaxScrollOffset();
112 void ApplySentScrollAndScaleDeltas();
112 113
113 SkColor background_color() const { return background_color_; } 114 SkColor background_color() const { return background_color_; }
114 void set_background_color(SkColor color) { background_color_ = color; } 115 void set_background_color(SkColor color) { background_color_ = color; }
115 116
116 bool has_transparent_background() const { 117 bool has_transparent_background() const {
117 return has_transparent_background_; 118 return has_transparent_background_;
118 } 119 }
119 void set_has_transparent_background(bool transparent) { 120 void set_has_transparent_background(bool transparent) {
120 has_transparent_background_ = transparent; 121 has_transparent_background_ = transparent;
121 } 122 }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 240
240 ui::LatencyInfo latency_info_; 241 ui::LatencyInfo latency_info_;
241 242
242 private: 243 private:
243 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 244 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
244 }; 245 };
245 246
246 } // namespace cc 247 } // namespace cc
247 248
248 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 249 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_scroll.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698