OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 5 #ifndef WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
6 #define WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 6 #define WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
218 | 218 |
219 // Stream texture ID allocated to the video. | 219 // Stream texture ID allocated to the video. |
220 unsigned int stream_id_; | 220 unsigned int stream_id_; |
221 | 221 |
222 // Whether the mediaplayer is playing. | 222 // Whether the mediaplayer is playing. |
223 bool is_playing_; | 223 bool is_playing_; |
224 | 224 |
225 // Whether media player needs to re-establish the surface texture peer. | 225 // Whether media player needs to re-establish the surface texture peer. |
226 bool needs_establish_peer_; | 226 bool needs_establish_peer_; |
227 | 227 |
228 // Whether the video size info is available. | |
229 bool has_size_info_; | |
Miguel Garcia
2012/11/29 20:28:02
can you call it is_video_available_ or has video_s
qinmin
2012/11/29 20:39:33
using is_video_available_ does not reflect the cor
Miguel Garcia
2012/11/29 20:43:36
ok
On 2012/11/29 20:39:33, qinmin wrote:
| |
230 | |
228 // Object for allocating stream textures. | 231 // Object for allocating stream textures. |
229 scoped_ptr<StreamTextureFactory> stream_texture_factory_; | 232 scoped_ptr<StreamTextureFactory> stream_texture_factory_; |
230 | 233 |
231 // Object for calling back the compositor thread to repaint the video when a | 234 // Object for calling back the compositor thread to repaint the video when a |
232 // frame available. It should be initialized on the compositor thread. | 235 // frame available. It should be initialized on the compositor thread. |
233 scoped_ptr<StreamTextureProxy> stream_texture_proxy_; | 236 scoped_ptr<StreamTextureProxy> stream_texture_proxy_; |
234 | 237 |
235 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 238 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
236 }; | 239 }; |
237 | 240 |
238 } // namespace webkit_media | 241 } // namespace webkit_media |
239 | 242 |
240 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 243 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
OLD | NEW |