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

Unified Diff: media/base/renderer_client.h

Issue 1978973002: Moves video frame callbacks from VideoFrameCompositor to Renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addresses comments Created 4 years, 7 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 | « media/base/pipeline_impl_unittest.cc ('k') | media/blink/video_frame_compositor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/renderer_client.h
diff --git a/media/base/renderer_client.h b/media/base/renderer_client.h
index 56cc15eaa5be9bf1db3af6cb0e1bb977efe11834..49b098e70511d3ecc978794e3013c34e7ebd52b6 100644
--- a/media/base/renderer_client.h
+++ b/media/base/renderer_client.h
@@ -5,6 +5,9 @@
#ifndef MEDIA_BASE_RENDERER_CLIENT_H_
#define MEDIA_BASE_RENDERER_CLIENT_H_
+#include "media/base/pipeline_status.h"
+#include "ui/gfx/geometry/size.h"
+
namespace media {
// Interface used by Renderer, AudioRenderer, and VideoRenderer implementations
@@ -25,6 +28,14 @@ class RendererClient {
// Executed whenever the key needed to decrypt the stream is not available.
virtual void OnWaitingForDecryptionKey() = 0;
+
+ // Executed for the first video frame and whenever natural size changes.
+ // Only used if media stream contains video track.
+ virtual void OnVideoNaturalSizeChange(const gfx::Size& size) = 0;
+
+ // Executed for the first video frame and whenever opacity changes.
+ // Only used if media stream contains video track.
+ virtual void OnVideoOpacityChange(bool opaque) = 0;
};
} // namespace media
« no previous file with comments | « media/base/pipeline_impl_unittest.cc ('k') | media/blink/video_frame_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698