| 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 | 340 |
| 341 template <typename RenderPassCuller> | 341 template <typename RenderPassCuller> |
| 342 static void RemoveRenderPasses(RenderPassCuller culler, FrameData* frame); | 342 static void RemoveRenderPasses(RenderPassCuller culler, FrameData* frame); |
| 343 | 343 |
| 344 skia::RefPtr<SkPicture> CapturePicture(); | 344 skia::RefPtr<SkPicture> CapturePicture(); |
| 345 | 345 |
| 346 bool pinch_gesture_active() const { return pinch_gesture_active_; } | 346 bool pinch_gesture_active() const { return pinch_gesture_active_; } |
| 347 | 347 |
| 348 void SetTreePriority(TreePriority priority); | 348 void SetTreePriority(TreePriority priority); |
| 349 | 349 |
| 350 void BeginNextFrame(); | 350 void ResetCurrentFrameTimeForNextFrame(); |
| 351 base::TimeTicks CurrentFrameTimeTicks(); | 351 base::TimeTicks CurrentFrameTimeTicks(); |
| 352 base::Time CurrentFrameTime(); | 352 base::Time CurrentFrameTime(); |
| 353 | 353 |
| 354 scoped_ptr<base::Value> AsValue() const; | 354 scoped_ptr<base::Value> AsValue() const; |
| 355 scoped_ptr<base::Value> ActivationStateAsValue() const; | 355 scoped_ptr<base::Value> ActivationStateAsValue() const; |
| 356 | 356 |
| 357 bool page_scale_animation_active() const { return !!page_scale_animation_; } | 357 bool page_scale_animation_active() const { return !!page_scale_animation_; } |
| 358 | 358 |
| 359 protected: | 359 protected: |
| 360 LayerTreeHostImpl( | 360 LayerTreeHostImpl( |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 scoped_ptr<AnimationRegistrar> animation_registrar_; | 484 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 485 | 485 |
| 486 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 486 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 487 | 487 |
| 488 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 488 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 489 }; | 489 }; |
| 490 | 490 |
| 491 } // namespace cc | 491 } // namespace cc |
| 492 | 492 |
| 493 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 493 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |