OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 virtual bool hasSingleSecurityOrigin() const; | 107 virtual bool hasSingleSecurityOrigin() const; |
108 virtual bool didPassCORSAccessCheck() const; | 108 virtual bool didPassCORSAccessCheck() const; |
109 | 109 |
110 virtual double mediaTimeForTimeValue(double timeValue) const; | 110 virtual double mediaTimeForTimeValue(double timeValue) const; |
111 | 111 |
112 virtual unsigned decodedFrameCount() const; | 112 virtual unsigned decodedFrameCount() const; |
113 virtual unsigned droppedFrameCount() const; | 113 virtual unsigned droppedFrameCount() const; |
114 virtual unsigned audioDecodedByteCount() const; | 114 virtual unsigned audioDecodedByteCount() const; |
115 virtual unsigned videoDecodedByteCount() const; | 115 virtual unsigned videoDecodedByteCount() const; |
116 | 116 |
| 117 virtual size_t getAudioBufferSize() const; |
| 118 virtual void setAudioBufferSize(size_t size); |
| 119 virtual size_t getVideoBufferSize() const; |
| 120 virtual void setVideoBufferSize(size_t size); |
| 121 |
117 // TODO(dshwang): remove |level|. crbug.com/443151 | 122 // TODO(dshwang): remove |level|. crbug.com/443151 |
118 bool copyVideoTextureToPlatformTexture( | 123 bool copyVideoTextureToPlatformTexture( |
119 blink::WebGraphicsContext3D* web_graphics_context, | 124 blink::WebGraphicsContext3D* web_graphics_context, |
120 unsigned int texture, | 125 unsigned int texture, |
121 unsigned int level, | 126 unsigned int level, |
122 unsigned int internal_format, | 127 unsigned int internal_format, |
123 unsigned int type, | 128 unsigned int type, |
124 bool premultiply_alpha, | 129 bool premultiply_alpha, |
125 bool flip_y) override; | 130 bool flip_y) override; |
126 virtual bool copyVideoTextureToPlatformTexture( | 131 virtual bool copyVideoTextureToPlatformTexture( |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 scoped_refptr<media::MediaLog> media_log_; | 212 scoped_refptr<media::MediaLog> media_log_; |
208 | 213 |
209 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; | 214 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; |
210 | 215 |
211 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 216 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
212 }; | 217 }; |
213 | 218 |
214 } // namespace content | 219 } // namespace content |
215 | 220 |
216 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 221 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
OLD | NEW |