| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_LAYERS_LAYER_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
| 6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 float* contents_scale_x, | 382 float* contents_scale_x, |
| 383 float* contents_scale_y, | 383 float* contents_scale_y, |
| 384 gfx::Size* content_bounds); | 384 gfx::Size* content_bounds); |
| 385 | 385 |
| 386 LayerTreeHost* layer_tree_host() { return layer_tree_host_; } | 386 LayerTreeHost* layer_tree_host() { return layer_tree_host_; } |
| 387 const LayerTreeHost* layer_tree_host() const { return layer_tree_host_; } | 387 const LayerTreeHost* layer_tree_host() const { return layer_tree_host_; } |
| 388 | 388 |
| 389 // Set the priority of all desired textures in this layer. | 389 // Set the priority of all desired textures in this layer. |
| 390 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc) {} | 390 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc) {} |
| 391 | 391 |
| 392 virtual void SetHasGpuRasterizationHint(bool has_hint) {} |
| 393 |
| 392 bool AddAnimation(scoped_ptr<Animation> animation); | 394 bool AddAnimation(scoped_ptr<Animation> animation); |
| 393 void PauseAnimation(int animation_id, double time_offset); | 395 void PauseAnimation(int animation_id, double time_offset); |
| 394 void RemoveAnimation(int animation_id); | 396 void RemoveAnimation(int animation_id); |
| 395 | 397 |
| 396 LayerAnimationController* layer_animation_controller() { | 398 LayerAnimationController* layer_animation_controller() { |
| 397 return layer_animation_controller_.get(); | 399 return layer_animation_controller_.get(); |
| 398 } | 400 } |
| 399 void SetLayerAnimationControllerForTest( | 401 void SetLayerAnimationControllerForTest( |
| 400 scoped_refptr<LayerAnimationController> controller); | 402 scoped_refptr<LayerAnimationController> controller); |
| 401 | 403 |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 DrawProperties<Layer> draw_properties_; | 621 DrawProperties<Layer> draw_properties_; |
| 620 | 622 |
| 621 PaintProperties paint_properties_; | 623 PaintProperties paint_properties_; |
| 622 | 624 |
| 623 DISALLOW_COPY_AND_ASSIGN(Layer); | 625 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 624 }; | 626 }; |
| 625 | 627 |
| 626 } // namespace cc | 628 } // namespace cc |
| 627 | 629 |
| 628 #endif // CC_LAYERS_LAYER_H_ | 630 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |