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

Unified Diff: services/ui/ws/frame_generator.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 | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/frame_generator.h
diff --git a/services/ui/ws/frame_generator.h b/services/ui/ws/frame_generator.h
index 55da0ce88e1b89799dd0c72c58fb3f07985eeac9..c3d6c9831d6981e242c92464a779d3c192af5e89 100644
--- a/services/ui/ws/frame_generator.h
+++ b/services/ui/ws/frame_generator.h
@@ -64,14 +64,16 @@ class FrameGenerator {
void DidDraw();
// Generates the CompositorFrame for the current |dirty_rect_|.
- cc::CompositorFrame GenerateCompositorFrame();
+ cc::CompositorFrame GenerateCompositorFrame(
+ const gfx::Rect& output_rect) const;
// DrawWindowTree recursively visits ServerWindows, creating a SurfaceDrawQuad
// for each that lacks one.
void DrawWindowTree(cc::RenderPass* pass,
ServerWindow* window,
const gfx::Vector2d& parent_to_root_origin_offset,
- float opacity);
+ float opacity,
+ bool* may_contain_video) const;
FrameGeneratorDelegate* delegate_;
scoped_refptr<SurfacesState> surfaces_state_;
@@ -83,6 +85,7 @@ class FrameGenerator {
gfx::Rect dirty_rect_;
base::Timer draw_timer_;
bool frame_pending_ = false;
+ bool may_contain_video_ = false;
base::WeakPtrFactory<FrameGenerator> weak_factory_;
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698