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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 blink::WebGraphicsContext3D* web_graphics_context, | 127 blink::WebGraphicsContext3D* web_graphics_context, |
128 unsigned int texture, | 128 unsigned int texture, |
129 unsigned int internal_format, | 129 unsigned int internal_format, |
130 unsigned int type, | 130 unsigned int type, |
131 bool premultiply_alpha, | 131 bool premultiply_alpha, |
132 bool flip_y); | 132 bool flip_y); |
133 | 133 |
134 // VideoFrameProvider implementation. | 134 // VideoFrameProvider implementation. |
135 void SetVideoFrameProviderClient( | 135 void SetVideoFrameProviderClient( |
136 cc::VideoFrameProvider::Client* client) override; | 136 cc::VideoFrameProvider::Client* client) override; |
| 137 bool UpdateCurrentFrame(base::TimeTicks deadline_min, |
| 138 base::TimeTicks deadline_max) override; |
137 scoped_refptr<media::VideoFrame> GetCurrentFrame() override; | 139 scoped_refptr<media::VideoFrame> GetCurrentFrame() override; |
138 void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame) override; | 140 void PutCurrentFrame() override; |
139 | 141 |
140 private: | 142 private: |
141 // The callback for VideoFrameProvider to signal a new frame is available. | 143 // The callback for VideoFrameProvider to signal a new frame is available. |
142 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); | 144 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); |
143 // Need repaint due to state change. | 145 // Need repaint due to state change. |
144 void RepaintInternal(); | 146 void RepaintInternal(); |
145 | 147 |
146 // The callback for source to report error. | 148 // The callback for source to report error. |
147 void OnSourceError(); | 149 void OnSourceError(); |
148 | 150 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 scoped_refptr<media::MediaLog> media_log_; | 207 scoped_refptr<media::MediaLog> media_log_; |
206 | 208 |
207 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; | 209 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; |
208 | 210 |
209 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 211 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
210 }; | 212 }; |
211 | 213 |
212 } // namespace content | 214 } // namespace content |
213 | 215 |
214 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 216 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
OLD | NEW |