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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 66acc46f24c692c618bd4e5500d1364f09d34e1e..0be92f66c84242b0f3197955b18a32220ea9e448 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -421,6 +421,9 @@ class CC_EXPORT LayerImpl {
return is_drawn_render_surface_layer_list_member_;
}
+ void set_may_contain_video(bool yes) { may_contain_video_ = yes; }
+ bool may_contain_video() const { return may_contain_video_; }
+
void Set3dSortingContextId(int id);
int sorting_context_id() { return sorting_context_id_; }
@@ -518,6 +521,7 @@ class CC_EXPORT LayerImpl {
// Tracks if drawing-related properties have changed since last redraw.
bool layer_property_changed_ : 1;
+ bool may_contain_video_ : 1;
bool masks_to_bounds_ : 1;
bool contents_opaque_ : 1;
« 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