OLD | NEW |
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_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { | 158 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { |
159 return rendering_stats_instrumentation_.get(); | 159 return rendering_stats_instrumentation_.get(); |
160 } | 160 } |
161 | 161 |
162 const RendererCapabilities& GetRendererCapabilities() const; | 162 const RendererCapabilities& GetRendererCapabilities() const; |
163 | 163 |
164 void SetNeedsAnimate(); | 164 void SetNeedsAnimate(); |
165 virtual void SetNeedsCommit(); | 165 virtual void SetNeedsCommit(); |
166 virtual void SetNeedsFullTreeSync(); | 166 virtual void SetNeedsFullTreeSync(); |
167 void SetNeedsRedraw(); | 167 void SetNeedsRedraw(); |
168 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); | 168 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
169 bool CommitRequested() const; | 169 bool CommitRequested() const; |
170 | 170 |
171 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, | 171 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, |
172 base::Time wall_clock_time); | 172 base::Time wall_clock_time); |
173 | 173 |
174 void SetRootLayer(scoped_refptr<Layer> root_layer); | 174 void SetRootLayer(scoped_refptr<Layer> root_layer); |
175 Layer* root_layer() { return root_layer_.get(); } | 175 Layer* root_layer() { return root_layer_.get(); } |
176 const Layer* root_layer() const { return root_layer_.get(); } | 176 const Layer* root_layer() const { return root_layer_.get(); } |
177 const Layer* RootScrollLayer() const; | 177 const Layer* RootScrollLayer() const; |
178 | 178 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 bool in_paint_layer_contents_; | 342 bool in_paint_layer_contents_; |
343 | 343 |
344 LatencyInfo latency_info_; | 344 LatencyInfo latency_info_; |
345 | 345 |
346 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 346 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
347 }; | 347 }; |
348 | 348 |
349 } // namespace cc | 349 } // namespace cc |
350 | 350 |
351 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 351 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |