| 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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); } | 383 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); } |
| 384 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const; | 384 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const; |
| 385 scoped_ptr<base::Value> ActivationStateAsValue() const; | 385 scoped_ptr<base::Value> ActivationStateAsValue() const; |
| 386 | 386 |
| 387 bool page_scale_animation_active() const { return !!page_scale_animation_; } | 387 bool page_scale_animation_active() const { return !!page_scale_animation_; } |
| 388 | 388 |
| 389 void CreateUIResource(UIResourceId uid, | 389 void CreateUIResource(UIResourceId uid, |
| 390 scoped_refptr<UIResourceBitmap> bitmap); | 390 scoped_refptr<UIResourceBitmap> bitmap); |
| 391 // Deletes a UI resource. May safely be called more than once. | 391 // Deletes a UI resource. May safely be called more than once. |
| 392 void DeleteUIResource(UIResourceId uid); | 392 void DeleteUIResource(UIResourceId uid); |
| 393 void DeleteAllUIResources(); |
| 393 | 394 |
| 394 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const; | 395 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const; |
| 395 | 396 |
| 396 protected: | 397 protected: |
| 397 LayerTreeHostImpl( | 398 LayerTreeHostImpl( |
| 398 const LayerTreeSettings& settings, | 399 const LayerTreeSettings& settings, |
| 399 LayerTreeHostImplClient* client, | 400 LayerTreeHostImplClient* client, |
| 400 Proxy* proxy, | 401 Proxy* proxy, |
| 401 RenderingStatsInstrumentation* rendering_stats_instrumentation); | 402 RenderingStatsInstrumentation* rendering_stats_instrumentation); |
| 402 | 403 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 | 567 |
| 567 // Optional callback to notify of new tree activations. | 568 // Optional callback to notify of new tree activations. |
| 568 base::Closure tree_activation_callback_; | 569 base::Closure tree_activation_callback_; |
| 569 | 570 |
| 570 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 571 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 571 }; | 572 }; |
| 572 | 573 |
| 573 } // namespace cc | 574 } // namespace cc |
| 574 | 575 |
| 575 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 576 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |