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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> debug_info); | 418 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> debug_info); |
419 | 419 |
420 void set_is_drawn_render_surface_layer_list_member(bool is_member) { | 420 void set_is_drawn_render_surface_layer_list_member(bool is_member) { |
421 is_drawn_render_surface_layer_list_member_ = is_member; | 421 is_drawn_render_surface_layer_list_member_ = is_member; |
422 } | 422 } |
423 | 423 |
424 bool is_drawn_render_surface_layer_list_member() const { | 424 bool is_drawn_render_surface_layer_list_member() const { |
425 return is_drawn_render_surface_layer_list_member_; | 425 return is_drawn_render_surface_layer_list_member_; |
426 } | 426 } |
427 | 427 |
| 428 void set_may_contain_video(bool yes) { may_contain_video_ = yes; } |
| 429 bool may_contain_video() const { return may_contain_video_; } |
| 430 |
428 void Set3dSortingContextId(int id); | 431 void Set3dSortingContextId(int id); |
429 int sorting_context_id() { return sorting_context_id_; } | 432 int sorting_context_id() { return sorting_context_id_; } |
430 | 433 |
431 // Get the correct invalidation region instead of conservative Rect | 434 // Get the correct invalidation region instead of conservative Rect |
432 // for layers that provide it. | 435 // for layers that provide it. |
433 virtual Region GetInvalidationRegionForDebugging(); | 436 virtual Region GetInvalidationRegionForDebugging(); |
434 | 437 |
435 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; | 438 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; |
436 | 439 |
437 void set_scrolls_drawn_descendant(bool scrolls_drawn_descendant) { | 440 void set_scrolls_drawn_descendant(bool scrolls_drawn_descendant) { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 | 518 |
516 gfx::Vector2dF offset_to_transform_parent_; | 519 gfx::Vector2dF offset_to_transform_parent_; |
517 uint32_t main_thread_scrolling_reasons_; | 520 uint32_t main_thread_scrolling_reasons_; |
518 | 521 |
519 bool user_scrollable_horizontal_ : 1; | 522 bool user_scrollable_horizontal_ : 1; |
520 bool user_scrollable_vertical_ : 1; | 523 bool user_scrollable_vertical_ : 1; |
521 bool should_flatten_transform_from_property_tree_ : 1; | 524 bool should_flatten_transform_from_property_tree_ : 1; |
522 | 525 |
523 // Tracks if drawing-related properties have changed since last redraw. | 526 // Tracks if drawing-related properties have changed since last redraw. |
524 bool layer_property_changed_ : 1; | 527 bool layer_property_changed_ : 1; |
| 528 bool may_contain_video_ : 1; |
525 | 529 |
526 bool masks_to_bounds_ : 1; | 530 bool masks_to_bounds_ : 1; |
527 bool contents_opaque_ : 1; | 531 bool contents_opaque_ : 1; |
528 bool use_parent_backface_visibility_ : 1; | 532 bool use_parent_backface_visibility_ : 1; |
529 bool use_local_transform_for_backface_visibility_ : 1; | 533 bool use_local_transform_for_backface_visibility_ : 1; |
530 bool should_check_backface_visibility_ : 1; | 534 bool should_check_backface_visibility_ : 1; |
531 bool draws_content_ : 1; | 535 bool draws_content_ : 1; |
532 bool is_drawn_render_surface_layer_list_member_ : 1; | 536 bool is_drawn_render_surface_layer_list_member_ : 1; |
533 | 537 |
534 // This is true if and only if the layer was ever ready since it last animated | 538 // This is true if and only if the layer was ever ready since it last animated |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 bool scrolls_drawn_descendant_ : 1; | 592 bool scrolls_drawn_descendant_ : 1; |
589 bool has_will_change_transform_hint_ : 1; | 593 bool has_will_change_transform_hint_ : 1; |
590 bool needs_push_properties_ : 1; | 594 bool needs_push_properties_ : 1; |
591 | 595 |
592 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 596 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
593 }; | 597 }; |
594 | 598 |
595 } // namespace cc | 599 } // namespace cc |
596 | 600 |
597 #endif // CC_LAYERS_LAYER_IMPL_H_ | 601 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |