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

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

Issue 2140783002: services/ui: Detect when a video is playing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot merge Created 4 years, 4 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
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> debug_info); 414 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> debug_info);
415 415
416 void set_is_drawn_render_surface_layer_list_member(bool is_member) { 416 void set_is_drawn_render_surface_layer_list_member(bool is_member) {
417 is_drawn_render_surface_layer_list_member_ = is_member; 417 is_drawn_render_surface_layer_list_member_ = is_member;
418 } 418 }
419 419
420 bool is_drawn_render_surface_layer_list_member() const { 420 bool is_drawn_render_surface_layer_list_member() const {
421 return is_drawn_render_surface_layer_list_member_; 421 return is_drawn_render_surface_layer_list_member_;
422 } 422 }
423 423
424 void set_may_contain_video(bool yes) { may_contain_video_ = yes; }
425 bool may_contain_video() const { return may_contain_video_; }
426
424 void Set3dSortingContextId(int id); 427 void Set3dSortingContextId(int id);
425 int sorting_context_id() { return sorting_context_id_; } 428 int sorting_context_id() { return sorting_context_id_; }
426 429
427 // Get the correct invalidation region instead of conservative Rect 430 // Get the correct invalidation region instead of conservative Rect
428 // for layers that provide it. 431 // for layers that provide it.
429 virtual Region GetInvalidationRegionForDebugging(); 432 virtual Region GetInvalidationRegionForDebugging();
430 433
431 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; 434 virtual gfx::Rect GetEnclosingRectInTargetSpace() const;
432 435
433 void set_scrolls_drawn_descendant(bool scrolls_drawn_descendant) { 436 void set_scrolls_drawn_descendant(bool scrolls_drawn_descendant) {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 514
512 gfx::Vector2dF offset_to_transform_parent_; 515 gfx::Vector2dF offset_to_transform_parent_;
513 uint32_t main_thread_scrolling_reasons_; 516 uint32_t main_thread_scrolling_reasons_;
514 517
515 bool user_scrollable_horizontal_ : 1; 518 bool user_scrollable_horizontal_ : 1;
516 bool user_scrollable_vertical_ : 1; 519 bool user_scrollable_vertical_ : 1;
517 bool should_flatten_transform_from_property_tree_ : 1; 520 bool should_flatten_transform_from_property_tree_ : 1;
518 521
519 // Tracks if drawing-related properties have changed since last redraw. 522 // Tracks if drawing-related properties have changed since last redraw.
520 bool layer_property_changed_ : 1; 523 bool layer_property_changed_ : 1;
524 bool may_contain_video_ : 1;
521 525
522 bool masks_to_bounds_ : 1; 526 bool masks_to_bounds_ : 1;
523 bool contents_opaque_ : 1; 527 bool contents_opaque_ : 1;
524 bool use_parent_backface_visibility_ : 1; 528 bool use_parent_backface_visibility_ : 1;
525 bool use_local_transform_for_backface_visibility_ : 1; 529 bool use_local_transform_for_backface_visibility_ : 1;
526 bool should_check_backface_visibility_ : 1; 530 bool should_check_backface_visibility_ : 1;
527 bool draws_content_ : 1; 531 bool draws_content_ : 1;
528 bool is_drawn_render_surface_layer_list_member_ : 1; 532 bool is_drawn_render_surface_layer_list_member_ : 1;
529 533
530 // This is true if and only if the layer was ever ready since it last animated 534 // This is true if and only if the layer was ever ready since it last animated
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 bool scrolls_drawn_descendant_ : 1; 585 bool scrolls_drawn_descendant_ : 1;
582 bool has_will_change_transform_hint_ : 1; 586 bool has_will_change_transform_hint_ : 1;
583 bool needs_push_properties_ : 1; 587 bool needs_push_properties_ : 1;
584 588
585 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 589 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
586 }; 590 };
587 591
588 } // namespace cc 592 } // namespace cc
589 593
590 #endif // CC_LAYERS_LAYER_IMPL_H_ 594 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698