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