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

Unified 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: 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/ipc/struct_traits_unittest.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 4e132b1258518fe4a225d2b867947f3a84a88f69..560e3e77d5db245352fc916b0041b1ebb420eaee 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -475,6 +475,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
void SetLayerPropertyChanged();
bool layer_property_changed() const { return layer_property_changed_; }
+ void SetMayContainVideo(bool yes);
+
void DidBeginTracing();
int num_copy_requests_in_target_subtree();
@@ -713,6 +715,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
bool force_render_surface_for_testing_ : 1;
bool subtree_property_changed_ : 1;
bool layer_property_changed_ : 1;
+ bool may_contain_video_ : 1;
SkColor safe_opaque_background_color_;
// draw_blend_mode may be different than blend_mode_,
// when a RenderSurface re-parents the layer's blend_mode.
« no previous file with comments | « cc/ipc/struct_traits_unittest.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698