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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 bool visible() const { return visible_; } | 226 bool visible() const { return visible_; } |
227 | 227 |
228 void SetThrottleFrameProduction(bool throttle); | 228 void SetThrottleFrameProduction(bool throttle); |
229 | 229 |
230 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 230 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
231 bool use_anchor, | 231 bool use_anchor, |
232 float scale, | 232 float scale, |
233 base::TimeDelta duration); | 233 base::TimeDelta duration); |
234 | 234 |
235 void ApplyScrollAndScale(ScrollAndScaleSet* info); | 235 void ApplyScrollAndScale(ScrollAndScaleSet* info); |
| 236 void RecordCompositeTimings(FrameTimingTracker::CompositeTimingSet* info); |
| 237 void RecordRenderTimings(FrameTimingTracker::MainFrameTimingSet* info); |
236 void SetImplTransform(const gfx::Transform& transform); | 238 void SetImplTransform(const gfx::Transform& transform); |
237 | 239 |
238 // Virtual for tests. | 240 // Virtual for tests. |
239 virtual void StartRateLimiter(); | 241 virtual void StartRateLimiter(); |
240 virtual void StopRateLimiter(); | 242 virtual void StopRateLimiter(); |
241 | 243 |
242 void RateLimit(); | 244 void RateLimit(); |
243 | 245 |
244 bool AlwaysUsePartialTextureUpdates(); | 246 bool AlwaysUsePartialTextureUpdates(); |
245 size_t MaxPartialTextureUpdates() const; | 247 size_t MaxPartialTextureUpdates() const; |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 | 471 |
470 uint32_t surface_id_namespace_; | 472 uint32_t surface_id_namespace_; |
471 uint32_t next_surface_sequence_; | 473 uint32_t next_surface_sequence_; |
472 | 474 |
473 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 475 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
474 }; | 476 }; |
475 | 477 |
476 } // namespace cc | 478 } // namespace cc |
477 | 479 |
478 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 480 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |