| 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 <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 } | 144 } |
| 145 | 145 |
| 146 void NotifyInputThrottledUntilCommit(); | 146 void NotifyInputThrottledUntilCommit(); |
| 147 | 147 |
| 148 void Composite(base::TimeTicks frame_begin_time); | 148 void Composite(base::TimeTicks frame_begin_time); |
| 149 | 149 |
| 150 void FinishAllRendering(); | 150 void FinishAllRendering(); |
| 151 | 151 |
| 152 void SetDeferCommits(bool defer_commits); | 152 void SetDeferCommits(bool defer_commits); |
| 153 | 153 |
| 154 // Test only hook | |
| 155 virtual void DidDeferCommit(); | |
| 156 | |
| 157 int source_frame_number() const { return source_frame_number_; } | 154 int source_frame_number() const { return source_frame_number_; } |
| 158 | 155 |
| 159 void SetNeedsDisplayOnAllLayers(); | 156 void SetNeedsDisplayOnAllLayers(); |
| 160 | 157 |
| 161 void CollectRenderingStats(RenderingStats* stats) const; | 158 void CollectRenderingStats(RenderingStats* stats) const; |
| 162 | 159 |
| 163 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { | 160 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { |
| 164 return rendering_stats_instrumentation_.get(); | 161 return rendering_stats_instrumentation_.get(); |
| 165 } | 162 } |
| 166 | 163 |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 | 482 |
| 486 uint32_t surface_id_namespace_; | 483 uint32_t surface_id_namespace_; |
| 487 uint32_t next_surface_sequence_; | 484 uint32_t next_surface_sequence_; |
| 488 | 485 |
| 489 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 486 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 490 }; | 487 }; |
| 491 | 488 |
| 492 } // namespace cc | 489 } // namespace cc |
| 493 | 490 |
| 494 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 491 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |