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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 virtual bool LayerIsAlwaysDamaged() const; | 368 virtual bool LayerIsAlwaysDamaged() const; |
369 | 369 |
370 LayerAnimationController* layer_animation_controller() { | 370 LayerAnimationController* layer_animation_controller() { |
371 return layer_animation_controller_.get(); | 371 return layer_animation_controller_.get(); |
372 } | 372 } |
373 | 373 |
374 virtual Region VisibleContentOpaqueRegion() const; | 374 virtual Region VisibleContentOpaqueRegion() const; |
375 | 375 |
376 virtual void DidBecomeActive(); | 376 virtual void DidBecomeActive(); |
377 | 377 |
| 378 virtual void DidBeginTracing(); |
| 379 |
378 // Indicates that the surface previously used to render this layer | 380 // Indicates that the surface previously used to render this layer |
379 // was lost and that a new one has been created. Won't be called | 381 // was lost and that a new one has been created. Won't be called |
380 // until the new surface has been created successfully. | 382 // until the new surface has been created successfully. |
381 virtual void DidLoseOutputSurface(); | 383 virtual void DidLoseOutputSurface(); |
382 | 384 |
383 ScrollbarAnimationController* scrollbar_animation_controller() const { | 385 ScrollbarAnimationController* scrollbar_animation_controller() const { |
384 return scrollbar_animation_controller_.get(); | 386 return scrollbar_animation_controller_.get(); |
385 } | 387 } |
386 | 388 |
387 void SetScrollbarOpacity(float opacity); | 389 void SetScrollbarOpacity(float opacity); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 // Group of properties that need to be computed based on the layer tree | 547 // Group of properties that need to be computed based on the layer tree |
546 // hierarchy before layers can be drawn. | 548 // hierarchy before layers can be drawn. |
547 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; | 549 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; |
548 | 550 |
549 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 551 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
550 }; | 552 }; |
551 | 553 |
552 } // namespace cc | 554 } // namespace cc |
553 | 555 |
554 #endif // CC_LAYERS_LAYER_IMPL_H_ | 556 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |