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 // TODO(dshwang): remove |level|. crbug.com/443151 |
117 bool copyVideoTextureToPlatformTexture( | 118 bool copyVideoTextureToPlatformTexture( |
118 blink::WebGraphicsContext3D* web_graphics_context, | 119 blink::WebGraphicsContext3D* web_graphics_context, |
119 unsigned int texture, | 120 unsigned int texture, |
120 unsigned int level, | 121 unsigned int level, |
121 unsigned int internal_format, | 122 unsigned int internal_format, |
122 unsigned int type, | 123 unsigned int type, |
123 bool premultiply_alpha, | 124 bool premultiply_alpha, |
124 bool flip_y) override; | 125 bool flip_y) override; |
| 126 virtual bool copyVideoTextureToPlatformTexture( |
| 127 blink::WebGraphicsContext3D* web_graphics_context, |
| 128 unsigned int texture, |
| 129 unsigned int internal_format, |
| 130 unsigned int type, |
| 131 bool premultiply_alpha, |
| 132 bool flip_y); |
125 | 133 |
126 // VideoFrameProvider implementation. | 134 // VideoFrameProvider implementation. |
127 void SetVideoFrameProviderClient( | 135 void SetVideoFrameProviderClient( |
128 cc::VideoFrameProvider::Client* client) override; | 136 cc::VideoFrameProvider::Client* client) override; |
129 scoped_refptr<media::VideoFrame> GetCurrentFrame() override; | 137 scoped_refptr<media::VideoFrame> GetCurrentFrame() override; |
130 void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame) override; | 138 void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame) override; |
131 | 139 |
132 private: | 140 private: |
133 // The callback for VideoFrameProvider to signal a new frame is available. | 141 // The callback for VideoFrameProvider to signal a new frame is available. |
134 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); | 142 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 scoped_refptr<media::MediaLog> media_log_; | 205 scoped_refptr<media::MediaLog> media_log_; |
198 | 206 |
199 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; | 207 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; |
200 | 208 |
201 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 209 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
202 }; | 210 }; |
203 | 211 |
204 } // namespace content | 212 } // namespace content |
205 | 213 |
206 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 214 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
OLD | NEW |