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 <list> | 9 #include <list> |
10 #include <set> | 10 #include <set> |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 } | 140 } |
141 | 141 |
142 void NotifyInputThrottledUntilCommit(); | 142 void NotifyInputThrottledUntilCommit(); |
143 | 143 |
144 void Composite(base::TimeTicks frame_begin_time); | 144 void Composite(base::TimeTicks frame_begin_time); |
145 | 145 |
146 void FinishAllRendering(); | 146 void FinishAllRendering(); |
147 | 147 |
148 void SetDeferCommits(bool defer_commits); | 148 void SetDeferCommits(bool defer_commits); |
149 | 149 |
150 // Test only hook | |
151 virtual void DidDeferCommit(); | |
152 | |
153 int source_frame_number() const { return source_frame_number_; } | 150 int source_frame_number() const { return source_frame_number_; } |
154 | 151 |
155 void SetNeedsDisplayOnAllLayers(); | 152 void SetNeedsDisplayOnAllLayers(); |
156 | 153 |
157 void CollectRenderingStats(RenderingStats* stats) const; | 154 void CollectRenderingStats(RenderingStats* stats) const; |
158 | 155 |
159 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { | 156 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { |
160 return rendering_stats_instrumentation_.get(); | 157 return rendering_stats_instrumentation_.get(); |
161 } | 158 } |
162 | 159 |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 | 474 |
478 uint32_t surface_id_namespace_; | 475 uint32_t surface_id_namespace_; |
479 uint32_t next_surface_sequence_; | 476 uint32_t next_surface_sequence_; |
480 | 477 |
481 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 478 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
482 }; | 479 }; |
483 | 480 |
484 } // namespace cc | 481 } // namespace cc |
485 | 482 |
486 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 483 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |