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; |
| 141 void SetVisible(bool visible) override; |
139 | 142 |
140 private: | 143 private: |
141 // The callback for VideoFrameProvider to signal a new frame is available. | 144 // The callback for VideoFrameProvider to signal a new frame is available. |
142 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); | 145 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); |
143 // Need repaint due to state change. | 146 // Need repaint due to state change. |
144 void RepaintInternal(); | 147 void RepaintInternal(); |
145 | 148 |
146 // The callback for source to report error. | 149 // The callback for source to report error. |
147 void OnSourceError(); | 150 void OnSourceError(); |
148 | 151 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 scoped_refptr<media::MediaLog> media_log_; | 208 scoped_refptr<media::MediaLog> media_log_; |
206 | 209 |
207 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; | 210 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; |
208 | 211 |
209 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 212 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
210 }; | 213 }; |
211 | 214 |
212 } // namespace content | 215 } // namespace content |
213 | 216 |
214 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 217 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
OLD | NEW |