| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 void CollectRenderingStats(RenderingStats* stats) const; | 161 void CollectRenderingStats(RenderingStats* stats) const; |
| 162 | 162 |
| 163 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { | 163 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { |
| 164 return rendering_stats_instrumentation_.get(); | 164 return rendering_stats_instrumentation_.get(); |
| 165 } | 165 } |
| 166 | 166 |
| 167 const RendererCapabilities& GetRendererCapabilities() const; | 167 const RendererCapabilities& GetRendererCapabilities() const; |
| 168 | 168 |
| 169 void SetNeedsAnimate(); | 169 void SetNeedsAnimate(); |
| 170 virtual void SetNeedsUpdateLayers(); |
| 170 virtual void SetNeedsCommit(); | 171 virtual void SetNeedsCommit(); |
| 171 virtual void SetNeedsFullTreeSync(); | 172 virtual void SetNeedsFullTreeSync(); |
| 172 void SetNeedsRedraw(); | 173 void SetNeedsRedraw(); |
| 173 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 174 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
| 174 bool CommitRequested() const; | 175 bool CommitRequested() const; |
| 175 | 176 |
| 176 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, | 177 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, |
| 177 base::Time wall_clock_time); | 178 base::Time wall_clock_time); |
| 178 | 179 |
| 179 void SetRootLayer(scoped_refptr<Layer> root_layer); | 180 void SetRootLayer(scoped_refptr<Layer> root_layer); |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 int64 total_num_cc_layers_will_use_lcd_text; | 369 int64 total_num_cc_layers_will_use_lcd_text; |
| 369 }; | 370 }; |
| 370 LCDTextMetrics lcd_text_metrics_; | 371 LCDTextMetrics lcd_text_metrics_; |
| 371 | 372 |
| 372 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 373 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 373 }; | 374 }; |
| 374 | 375 |
| 375 } // namespace cc | 376 } // namespace cc |
| 376 | 377 |
| 377 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 378 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |