| 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 <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 base::Time CurrentFrameTime(); | 376 base::Time CurrentFrameTime(); |
| 377 | 377 |
| 378 virtual base::TimeTicks CurrentPhysicalTimeTicks() const; | 378 virtual base::TimeTicks CurrentPhysicalTimeTicks() const; |
| 379 | 379 |
| 380 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); } | 380 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); } |
| 381 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const; | 381 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const; |
| 382 scoped_ptr<base::Value> ActivationStateAsValue() const; | 382 scoped_ptr<base::Value> ActivationStateAsValue() const; |
| 383 | 383 |
| 384 bool page_scale_animation_active() const { return !!page_scale_animation_; } | 384 bool page_scale_animation_active() const { return !!page_scale_animation_; } |
| 385 | 385 |
| 386 void CreateUIResource(UIResourceId uid, | 386 virtual void CreateUIResource(UIResourceId uid, |
| 387 scoped_refptr<UIResourceBitmap> bitmap); | 387 scoped_refptr<UIResourceBitmap> bitmap); |
| 388 // Deletes a UI resource. May safely be called more than once. | 388 // Deletes a UI resource. May safely be called more than once. |
| 389 void DeleteUIResource(UIResourceId uid); | 389 virtual void DeleteUIResource(UIResourceId uid); |
| 390 | 390 |
| 391 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const; | 391 virtual ResourceProvider::ResourceId ResourceIdForUIResource( |
| 392 UIResourceId uid) const; |
| 392 | 393 |
| 393 protected: | 394 protected: |
| 394 LayerTreeHostImpl( | 395 LayerTreeHostImpl( |
| 395 const LayerTreeSettings& settings, | 396 const LayerTreeSettings& settings, |
| 396 LayerTreeHostImplClient* client, | 397 LayerTreeHostImplClient* client, |
| 397 Proxy* proxy, | 398 Proxy* proxy, |
| 398 RenderingStatsInstrumentation* rendering_stats_instrumentation); | 399 RenderingStatsInstrumentation* rendering_stats_instrumentation); |
| 399 | 400 |
| 400 // Virtual for testing. | 401 // Virtual for testing. |
| 401 virtual void AnimateLayers(base::TimeTicks monotonic_time, | 402 virtual void AnimateLayers(base::TimeTicks monotonic_time, |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 | 562 |
| 562 // Optional callback to notify of new tree activations. | 563 // Optional callback to notify of new tree activations. |
| 563 base::Closure tree_activation_callback_; | 564 base::Closure tree_activation_callback_; |
| 564 | 565 |
| 565 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 566 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 566 }; | 567 }; |
| 567 | 568 |
| 568 } // namespace cc | 569 } // namespace cc |
| 569 | 570 |
| 570 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 571 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |