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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 } | 384 } |
385 bool screen_space_opacity_is_animating() const { | 385 bool screen_space_opacity_is_animating() const { |
386 return draw_properties_.screen_space_opacity_is_animating; | 386 return draw_properties_.screen_space_opacity_is_animating; |
387 } | 387 } |
388 bool can_use_lcd_text() const { return draw_properties_.can_use_lcd_text; } | 388 bool can_use_lcd_text() const { return draw_properties_.can_use_lcd_text; } |
389 bool is_clipped() const { return draw_properties_.is_clipped; } | 389 bool is_clipped() const { return draw_properties_.is_clipped; } |
390 gfx::Rect clip_rect() const { return draw_properties_.clip_rect; } | 390 gfx::Rect clip_rect() const { return draw_properties_.clip_rect; } |
391 gfx::Rect drawable_content_rect() const { | 391 gfx::Rect drawable_content_rect() const { |
392 return draw_properties_.drawable_content_rect; | 392 return draw_properties_.drawable_content_rect; |
393 } | 393 } |
394 gfx::Rect visible_content_rect() const { | 394 gfx::Rect visible_layer_rect() const { |
395 return draw_properties_.visible_content_rect; | 395 return draw_properties_.visible_layer_rect; |
396 } | 396 } |
397 LayerImpl* render_target() { | 397 LayerImpl* render_target() { |
398 DCHECK(!draw_properties_.render_target || | 398 DCHECK(!draw_properties_.render_target || |
399 draw_properties_.render_target->render_surface()); | 399 draw_properties_.render_target->render_surface()); |
400 return draw_properties_.render_target; | 400 return draw_properties_.render_target; |
401 } | 401 } |
402 const LayerImpl* render_target() const { | 402 const LayerImpl* render_target() const { |
403 DCHECK(!draw_properties_.render_target || | 403 DCHECK(!draw_properties_.render_target || |
404 draw_properties_.render_target->render_surface()); | 404 draw_properties_.render_target->render_surface()); |
405 return draw_properties_.render_target; | 405 return draw_properties_.render_target; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 void ResetAllChangeTrackingForSubtree(); | 553 void ResetAllChangeTrackingForSubtree(); |
554 | 554 |
555 LayerAnimationController* layer_animation_controller() { | 555 LayerAnimationController* layer_animation_controller() { |
556 return layer_animation_controller_.get(); | 556 return layer_animation_controller_.get(); |
557 } | 557 } |
558 | 558 |
559 const LayerAnimationController* layer_animation_controller() const { | 559 const LayerAnimationController* layer_animation_controller() const { |
560 return layer_animation_controller_.get(); | 560 return layer_animation_controller_.get(); |
561 } | 561 } |
562 | 562 |
563 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const; | 563 virtual SimpleEnclosedRegion VisibleOpaqueRegion() const; |
564 | 564 |
565 virtual void DidBecomeActive(); | 565 virtual void DidBecomeActive(); |
566 | 566 |
567 virtual void DidBeginTracing(); | 567 virtual void DidBeginTracing(); |
568 | 568 |
569 // Release resources held by this layer. Called when the output surface | 569 // Release resources held by this layer. Called when the output surface |
570 // that rendered this layer was lost or a rendering mode switch has occured. | 570 // that rendered this layer was lost or a rendering mode switch has occured. |
571 virtual void ReleaseResources(); | 571 virtual void ReleaseResources(); |
572 | 572 |
573 // Recreate resources that are required after they were released by a | 573 // Recreate resources that are required after they were released by a |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 bool visited_; | 840 bool visited_; |
841 bool layer_or_descendant_is_drawn_; | 841 bool layer_or_descendant_is_drawn_; |
842 bool sorted_for_recursion_; | 842 bool sorted_for_recursion_; |
843 | 843 |
844 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 844 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
845 }; | 845 }; |
846 | 846 |
847 } // namespace cc | 847 } // namespace cc |
848 | 848 |
849 #endif // CC_LAYERS_LAYER_IMPL_H_ | 849 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |