| 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 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 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 void DeleteUIResource(UIResourceId uid); |
| 385 | 385 |
| 386 // Release all the UI resources. |
| 387 void ReleaseUIResources(); |
| 388 |
| 386 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const; | 389 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const; |
| 387 | 390 |
| 388 protected: | 391 protected: |
| 389 LayerTreeHostImpl( | 392 LayerTreeHostImpl( |
| 390 const LayerTreeSettings& settings, | 393 const LayerTreeSettings& settings, |
| 391 LayerTreeHostImplClient* client, | 394 LayerTreeHostImplClient* client, |
| 392 Proxy* proxy, | 395 Proxy* proxy, |
| 393 RenderingStatsInstrumentation* rendering_stats_instrumentation); | 396 RenderingStatsInstrumentation* rendering_stats_instrumentation); |
| 394 virtual void ActivatePendingTree(); | 397 virtual void ActivatePendingTree(); |
| 395 | 398 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 | 560 |
| 558 // Optional callback to notify of new tree activations. | 561 // Optional callback to notify of new tree activations. |
| 559 base::Closure tree_activation_callback_; | 562 base::Closure tree_activation_callback_; |
| 560 | 563 |
| 561 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 564 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 562 }; | 565 }; |
| 563 | 566 |
| 564 } // namespace cc | 567 } // namespace cc |
| 565 | 568 |
| 566 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 569 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |