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

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: . 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
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 879beaab1f29863a474602889f52ce64a02a338f..d545abba6bdaef7051f48940638a266b8e309b4b 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -471,6 +471,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();
@@ -708,6 +710,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.

Powered by Google App Engine
This is Rietveld 408576698