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

Unified Diff: services/ui/ws/server_window_surface.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 | « services/ui/ws/frame_generator_unittest.cc ('k') | services/ui/ws/server_window_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/server_window_surface.h
diff --git a/services/ui/ws/server_window_surface.h b/services/ui/ws/server_window_surface.h
index 5f1e6d675d51c2c1feda64e292dae3254b3ccead..c5922b3f955a6887e2fa42db7e0bf09262607759 100644
--- a/services/ui/ws/server_window_surface.h
+++ b/services/ui/ws/server_window_surface.h
@@ -41,6 +41,8 @@ class ServerWindowSurface : public mojom::Surface,
return last_submitted_frame_size_;
}
+ bool may_contain_video() const { return may_contain_video_; }
+
// mojom::Surface:
void SubmitCompositorFrame(
cc::CompositorFrame frame,
@@ -72,6 +74,8 @@ class ServerWindowSurface : public mojom::Surface,
// Set of surface ids that need to be destroyed.
std::set<cc::SurfaceId> surfaces_scheduled_for_destruction_;
+ bool may_contain_video_ = false;
+
DISALLOW_COPY_AND_ASSIGN(ServerWindowSurface);
};
« no previous file with comments | « services/ui/ws/frame_generator_unittest.cc ('k') | services/ui/ws/server_window_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698