| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 unsigned int type, | 156 unsigned int type, |
| 157 bool premultiply_alpha, | 157 bool premultiply_alpha, |
| 158 bool flip_y) override; | 158 bool flip_y) override; |
| 159 | 159 |
| 160 private: | 160 private: |
| 161 friend class WebMediaPlayerMSTest; | 161 friend class WebMediaPlayerMSTest; |
| 162 | 162 |
| 163 // The callback for MediaStreamVideoRenderer to signal a new frame is | 163 // The callback for MediaStreamVideoRenderer to signal a new frame is |
| 164 // available. | 164 // available. |
| 165 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); | 165 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); |
| 166 void OnRotationChanged(media::VideoRotation video_rotation, bool is_opaque); |
| 167 |
| 166 // Need repaint due to state change. | 168 // Need repaint due to state change. |
| 167 void RepaintInternal(); | 169 void RepaintInternal(); |
| 168 | 170 |
| 169 // The callback for source to report error. | 171 // The callback for source to report error. |
| 170 void OnSourceError(); | 172 void OnSourceError(); |
| 171 | 173 |
| 172 // Helpers that set the network/ready state and notifies the client if | 174 // Helpers that set the network/ready state and notifies the client if |
| 173 // they've changed. | 175 // they've changed. |
| 174 void SetNetworkState(blink::WebMediaPlayer::NetworkState state); | 176 void SetNetworkState(blink::WebMediaPlayer::NetworkState state); |
| 175 void SetReadyState(blink::WebMediaPlayer::ReadyState state); | 177 void SetReadyState(blink::WebMediaPlayer::ReadyState state); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 // True if playback should be started upon the next call to OnShown(). Only | 238 // True if playback should be started upon the next call to OnShown(). Only |
| 237 // used on Android. | 239 // used on Android. |
| 238 bool should_play_upon_shown_; | 240 bool should_play_upon_shown_; |
| 239 | 241 |
| 240 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 242 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
| 241 }; | 243 }; |
| 242 | 244 |
| 243 } // namespace content | 245 } // namespace content |
| 244 | 246 |
| 245 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 247 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| OLD | NEW |