Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: cc/layers/layer.h

Issue 2140783002: services/ui: Detect when a video is playing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 } 464 }
465 465
466 void set_clip_rect(const gfx::Rect& rect) {} 466 void set_clip_rect(const gfx::Rect& rect) {}
467 467
468 void SetSubtreePropertyChanged(); 468 void SetSubtreePropertyChanged();
469 bool subtree_property_changed() const { return subtree_property_changed_; } 469 bool subtree_property_changed() const { return subtree_property_changed_; }
470 470
471 void SetLayerPropertyChanged(); 471 void SetLayerPropertyChanged();
472 bool layer_property_changed() const { return layer_property_changed_; } 472 bool layer_property_changed() const { return layer_property_changed_; }
473 473
474 void SetMayContainVideo(bool yes);
475
474 void DidBeginTracing(); 476 void DidBeginTracing();
475 477
476 int num_copy_requests_in_target_subtree(); 478 int num_copy_requests_in_target_subtree();
477 479
478 void SetElementId(ElementId id); 480 void SetElementId(ElementId id);
479 ElementId element_id() const { return inputs_.element_id; } 481 ElementId element_id() const { return inputs_.element_id; }
480 482
481 void SetMutableProperties(uint32_t properties); 483 void SetMutableProperties(uint32_t properties);
482 uint32_t mutable_properties() const { return inputs_.mutable_properties; } 484 uint32_t mutable_properties() const { return inputs_.mutable_properties; }
483 485
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 int scroll_tree_index_; 703 int scroll_tree_index_;
702 int property_tree_sequence_number_; 704 int property_tree_sequence_number_;
703 gfx::Vector2dF offset_to_transform_parent_; 705 gfx::Vector2dF offset_to_transform_parent_;
704 bool should_flatten_transform_from_property_tree_ : 1; 706 bool should_flatten_transform_from_property_tree_ : 1;
705 bool draws_content_ : 1; 707 bool draws_content_ : 1;
706 bool use_local_transform_for_backface_visibility_ : 1; 708 bool use_local_transform_for_backface_visibility_ : 1;
707 bool should_check_backface_visibility_ : 1; 709 bool should_check_backface_visibility_ : 1;
708 bool force_render_surface_for_testing_ : 1; 710 bool force_render_surface_for_testing_ : 1;
709 bool subtree_property_changed_ : 1; 711 bool subtree_property_changed_ : 1;
710 bool layer_property_changed_ : 1; 712 bool layer_property_changed_ : 1;
713 bool may_contain_video_ : 1;
711 SkColor safe_opaque_background_color_; 714 SkColor safe_opaque_background_color_;
712 // draw_blend_mode may be different than blend_mode_, 715 // draw_blend_mode may be different than blend_mode_,
713 // when a RenderSurface re-parents the layer's blend_mode. 716 // when a RenderSurface re-parents the layer's blend_mode.
714 SkXfermode::Mode draw_blend_mode_; 717 SkXfermode::Mode draw_blend_mode_;
715 std::unique_ptr<std::set<Layer*>> scroll_children_; 718 std::unique_ptr<std::set<Layer*>> scroll_children_;
716 719
717 std::unique_ptr<std::set<Layer*>> clip_children_; 720 std::unique_ptr<std::set<Layer*>> clip_children_;
718 721
719 PaintProperties paint_properties_; 722 PaintProperties paint_properties_;
720 723
721 // These all act like draw properties, so don't need push properties. 724 // These all act like draw properties, so don't need push properties.
722 gfx::Rect visible_layer_rect_; 725 gfx::Rect visible_layer_rect_;
723 size_t num_unclipped_descendants_; 726 size_t num_unclipped_descendants_;
724 727
725 DISALLOW_COPY_AND_ASSIGN(Layer); 728 DISALLOW_COPY_AND_ASSIGN(Layer);
726 }; 729 };
727 730
728 } // namespace cc 731 } // namespace cc
729 732
730 #endif // CC_LAYERS_LAYER_H_ 733 #endif // CC_LAYERS_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698