Index: public/platform/WebMediaPlayer.h |
diff --git a/public/platform/WebMediaPlayer.h b/public/platform/WebMediaPlayer.h |
index c18942a62fa8b5e4f2cb09fd4c8f45348bed0861..32fcc045dec156d70829a1a375ba870bf0c3da72 100644 |
--- a/public/platform/WebMediaPlayer.h |
+++ b/public/platform/WebMediaPlayer.h |
@@ -147,6 +147,12 @@ public: |
virtual unsigned audioDecodedByteCount() const = 0; |
virtual unsigned videoDecodedByteCount() const = 0; |
+ // Getting/setting buffer sizes is currently only implemented for MSE. |
ddorwin
2015/06/17 20:31:35
Is there a CL showing how this will be used? Would
servolk
2015/06/17 21:39:44
Please see the CL given in the description (https:
ddorwin
2015/06/20 01:56:40
Whether we need a uniform interface for controllin
|
+ virtual size_t getAudioBufferSize() const = 0; |
ddorwin
2015/06/17 20:31:35
I don't think these are "buffer" sizes. IMO, a buf
servolk
2015/06/17 21:39:44
The word "buffer" indeed has a different meaning f
ddorwin
2015/06/20 01:56:40
SourceBuffer is a very specific thing with a spec
|
+ virtual void setAudioBufferSize(size_t) = 0; |
ddorwin
2015/06/17 20:31:35
Does a per-player value make sense? Perhaps for Ca
servolk
2015/06/17 21:39:44
I think per-player setting gives us maximum flexib
ddorwin
2015/06/20 01:56:40
Flexibility often means complexity and can easily
|
+ virtual size_t getVideoBufferSize() const = 0; |
ddorwin
2015/06/17 20:31:35
"Audio" and "Video" restricts the Blink API to one
servolk
2015/06/17 21:39:44
As far as I know memory usage by embedded text tra
|
+ virtual void setVideoBufferSize(size_t) = 0; |
+ |
virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha, SkXfermode::Mode) = 0; |
// Do a GPU-GPU textures copy if possible. |
virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsigned texture, unsigned internalFormat, unsigned type, bool premultiplyAlpha, bool flipY) { return false; } |