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_LAYERS_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 LayerAnimationController* layer_animation_controller() { | 476 LayerAnimationController* layer_animation_controller() { |
477 return layer_animation_controller_.get(); | 477 return layer_animation_controller_.get(); |
478 } | 478 } |
479 | 479 |
480 virtual Region VisibleContentOpaqueRegion() const; | 480 virtual Region VisibleContentOpaqueRegion() const; |
481 | 481 |
482 virtual void DidBecomeActive(); | 482 virtual void DidBecomeActive(); |
483 | 483 |
484 virtual void DidBeginTracing(); | 484 virtual void DidBeginTracing(); |
485 | 485 |
486 // Indicates that the surface previously used to render this layer | 486 // Release resources held by this layer. Called when the output surface |
487 // was lost and that a new one has been created. Won't be called | 487 // that rendered this layer was lost or a rendering mode switch has occured. |
488 // until the new surface has been created successfully. | 488 virtual void ReleaseResources(); |
489 virtual void DidLoseOutputSurface(); | |
490 | 489 |
491 ScrollbarAnimationController* scrollbar_animation_controller() const { | 490 ScrollbarAnimationController* scrollbar_animation_controller() const { |
492 return scrollbar_animation_controller_.get(); | 491 return scrollbar_animation_controller_.get(); |
493 } | 492 } |
494 | 493 |
495 void SetHorizontalScrollbarLayer(ScrollbarLayerImplBase* scrollbar_layer); | 494 void SetHorizontalScrollbarLayer(ScrollbarLayerImplBase* scrollbar_layer); |
496 ScrollbarLayerImplBase* horizontal_scrollbar_layer() { | 495 ScrollbarLayerImplBase* horizontal_scrollbar_layer() { |
497 return horizontal_scrollbar_layer_; | 496 return horizontal_scrollbar_layer_; |
498 } | 497 } |
499 | 498 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 DrawProperties<LayerImpl> draw_properties_; | 663 DrawProperties<LayerImpl> draw_properties_; |
665 | 664 |
666 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 665 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
667 | 666 |
668 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 667 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
669 }; | 668 }; |
670 | 669 |
671 } // namespace cc | 670 } // namespace cc |
672 | 671 |
673 #endif // CC_LAYERS_LAYER_IMPL_H_ | 672 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |