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

Unified Diff: media/remoting/remoting_renderer_controller.h

Issue 2511143006: Detect change on the intersection of video and viewport. (Closed)
Patch Set: Addressed comments. Created 4 years 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: media/remoting/remoting_renderer_controller.h
diff --git a/media/remoting/remoting_renderer_controller.h b/media/remoting/remoting_renderer_controller.h
index 9c98af12b555441c1ade86ff34291b321c7a8076..a2effeade106b520fcc6ee66660fc59fb51804a5 100644
--- a/media/remoting/remoting_renderer_controller.h
+++ b/media/remoting/remoting_renderer_controller.h
@@ -35,6 +35,7 @@ class RemotingRendererController final : public RemotingSourceImpl::Client,
// MediaObserver implementations.
void OnEnteredFullscreen() override;
void OnExitedFullscreen() override;
+ void OnStablyFilledViewportChanged(bool is_mostly_filling_viewport) override;
void OnSetCdm(CdmContext* cdm_context) override;
void OnMetadataChanged(const PipelineMetadata& metadata) override;
@@ -103,6 +104,9 @@ class RemotingRendererController final : public RemotingSourceImpl::Client,
VideoDecoderConfig video_decoder_config_;
AudioDecoderConfig audio_decoder_config_;
+ // Indicates whether video fills most of the viewport.
+ bool is_mostly_filling_viewport_ = false;
+
// The callback to switch the media renderer.
base::Closure switch_renderer_cb_;

Powered by Google App Engine
This is Rietveld 408576698