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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // WebMediaPlayerDelegate::Observer implementation. | 145 // WebMediaPlayerDelegate::Observer implementation. |
146 void OnHidden() override; | 146 void OnHidden() override; |
147 void OnShown() override; | 147 void OnShown() override; |
148 bool OnSuspendRequested(bool must_suspend) override; | 148 bool OnSuspendRequested(bool must_suspend) override; |
149 void OnPlay() override; | 149 void OnPlay() override; |
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, | |
156 unsigned int type, | |
157 bool premultiply_alpha, | 155 bool premultiply_alpha, |
158 bool flip_y) override; | 156 bool flip_y) override; |
159 | 157 |
160 bool texImageImpl(TexImageFunctionID functionID, | 158 bool texImageImpl(TexImageFunctionID functionID, |
161 unsigned target, | 159 unsigned target, |
162 gpu::gles2::GLES2Interface* gl, | 160 gpu::gles2::GLES2Interface* gl, |
163 int level, | 161 int level, |
164 int internalformat, | 162 int internalformat, |
165 unsigned format, | 163 unsigned format, |
166 unsigned type, | 164 unsigned type, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 // True if playback should be started upon the next call to OnShown(). Only | 249 // True if playback should be started upon the next call to OnShown(). Only |
252 // used on Android. | 250 // used on Android. |
253 bool should_play_upon_shown_; | 251 bool should_play_upon_shown_; |
254 | 252 |
255 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 253 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
256 }; | 254 }; |
257 | 255 |
258 } // namespace content | 256 } // namespace content |
259 | 257 |
260 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 258 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
OLD | NEW |