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

Unified Diff: public/platform/WebMediaPlayer.h

Issue 1182183004: Allow setting memory limits through WebMediaPlayer interface (Blink) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added a note about get/set buffer size working only for MSE for now Created 5 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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; }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698