| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 void OnPause() override; | 150 void OnPause() override; |
| 151 void OnVolumeMultiplierUpdate(double multiplier) override; | 151 void OnVolumeMultiplierUpdate(double multiplier) override; |
| 152 | 152 |
| 153 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface* gl, | 153 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface* gl, |
| 154 unsigned int texture, | 154 unsigned int texture, |
| 155 unsigned int internal_format, | 155 unsigned int internal_format, |
| 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 bool texImageImpl(TexImageFunctionID functionID, |
| 161 unsigned target, |
| 162 gpu::gles2::GLES2Interface* gl, |
| 163 int level, |
| 164 int internalformat, |
| 165 unsigned format, |
| 166 unsigned type, |
| 167 int xoffset, |
| 168 int yoffset, |
| 169 int zoffset, |
| 170 bool flip_y, |
| 171 bool premultiply_alpha) override; |
| 172 |
| 160 private: | 173 private: |
| 161 friend class WebMediaPlayerMSTest; | 174 friend class WebMediaPlayerMSTest; |
| 162 | 175 |
| 163 void OnFirstFrameReceived(media::VideoRotation video_rotation, | 176 void OnFirstFrameReceived(media::VideoRotation video_rotation, |
| 164 bool is_opaque); | 177 bool is_opaque); |
| 165 void OnOpacityChanged(bool is_opaque); | 178 void OnOpacityChanged(bool is_opaque); |
| 166 | 179 |
| 167 // Need repaint due to state change. | 180 // Need repaint due to state change. |
| 168 void RepaintInternal(); | 181 void RepaintInternal(); |
| 169 | 182 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 // True if playback should be started upon the next call to OnShown(). Only | 252 // True if playback should be started upon the next call to OnShown(). Only |
| 240 // used on Android. | 253 // used on Android. |
| 241 bool should_play_upon_shown_; | 254 bool should_play_upon_shown_; |
| 242 | 255 |
| 243 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 256 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
| 244 }; | 257 }; |
| 245 | 258 |
| 246 } // namespace content | 259 } // namespace content |
| 247 | 260 |
| 248 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 261 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| OLD | NEW |