| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 virtual bool LayerIsAlwaysDamaged() const; | 387 virtual bool LayerIsAlwaysDamaged() const; |
| 388 | 388 |
| 389 LayerAnimationController* layer_animation_controller() { | 389 LayerAnimationController* layer_animation_controller() { |
| 390 return layer_animation_controller_.get(); | 390 return layer_animation_controller_.get(); |
| 391 } | 391 } |
| 392 | 392 |
| 393 virtual Region VisibleContentOpaqueRegion() const; | 393 virtual Region VisibleContentOpaqueRegion() const; |
| 394 | 394 |
| 395 virtual void DidBecomeActive(); | 395 virtual void DidBecomeActive(); |
| 396 | 396 |
| 397 virtual void DidBeginTracing(); |
| 398 |
| 397 // Indicates that the surface previously used to render this layer | 399 // Indicates that the surface previously used to render this layer |
| 398 // was lost and that a new one has been created. Won't be called | 400 // was lost and that a new one has been created. Won't be called |
| 399 // until the new surface has been created successfully. | 401 // until the new surface has been created successfully. |
| 400 virtual void DidLoseOutputSurface(); | 402 virtual void DidLoseOutputSurface(); |
| 401 | 403 |
| 402 ScrollbarAnimationController* scrollbar_animation_controller() const { | 404 ScrollbarAnimationController* scrollbar_animation_controller() const { |
| 403 return scrollbar_animation_controller_.get(); | 405 return scrollbar_animation_controller_.get(); |
| 404 } | 406 } |
| 405 | 407 |
| 406 void SetScrollbarOpacity(float opacity); | 408 void SetScrollbarOpacity(float opacity); |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 // Group of properties that need to be computed based on the layer tree | 567 // Group of properties that need to be computed based on the layer tree |
| 566 // hierarchy before layers can be drawn. | 568 // hierarchy before layers can be drawn. |
| 567 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; | 569 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; |
| 568 | 570 |
| 569 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 571 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 570 }; | 572 }; |
| 571 | 573 |
| 572 } // namespace cc | 574 } // namespace cc |
| 573 | 575 |
| 574 #endif // CC_LAYERS_LAYER_IMPL_H_ | 576 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |