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

Unified Diff: services/ui/ws/server_window_surface.cc

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: services/ui/ws/server_window_surface.cc
diff --git a/services/ui/ws/server_window_surface.cc b/services/ui/ws/server_window_surface.cc
index fd7be5e71d2a2b1767c143c0a0023ee48318d212..79efc3c90dacabdb2166e802aa2df33a4891fe94 100644
--- a/services/ui/ws/server_window_surface.cc
+++ b/services/ui/ws/server_window_surface.cc
@@ -65,6 +65,7 @@ void ServerWindowSurface::SubmitCompositorFrame(
surface_id_ = surface_id_allocator_.GenerateId();
surface_factory_.Create(surface_id_);
}
+ may_contain_video_ = frame.metadata.may_contain_video;
surface_factory_.SubmitCompositorFrame(surface_id_, std::move(frame),
callback);
last_submitted_frame_size_ = frame_size;
« services/ui/ws/frame_generator.cc ('K') | « services/ui/ws/server_window_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698