Chromium Code Reviews| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 174 | 174 |
| 175 // Cleaning up all remaining resources as this object is about to get deleted. | 175 // Cleaning up all remaining resources as this object is about to get deleted. |
| 176 virtual void Destroy() = 0; | 176 virtual void Destroy() = 0; |
| 177 | 177 |
| 178 WebKit::WebMediaPlayerClient* client() { return client_; } | 178 WebKit::WebMediaPlayerClient* client() { return client_; } |
| 179 | 179 |
| 180 int player_id() const { return player_id_; } | 180 int player_id() const { return player_id_; } |
| 181 | 181 |
| 182 WebMediaPlayerManagerAndroid* manager() const { return manager_; } | 182 WebMediaPlayerManagerAndroid* manager() const { return manager_; } |
| 183 | 183 |
| 184 // Request whether the player needs external surface for rendering. | |
| 185 void SetNeedsExternalSurface(bool needs_external_surface); | |
|
ycheo
2013/03/14 09:45:52
Do you need this api?
wonsik
2013/03/14 10:57:01
Removed.
| |
| 186 | |
| 187 // Request external surface for out-of-band composition. | |
| 188 virtual void RequestExternalSurface() = 0; | |
| 189 | |
| 184 private: | 190 private: |
| 185 void ReallocateVideoFrame(); | 191 void ReallocateVideoFrame(); |
| 186 | 192 |
| 187 WebKit::WebMediaPlayerClient* const client_; | 193 WebKit::WebMediaPlayerClient* const client_; |
| 188 | 194 |
| 189 // Save the list of buffered time ranges. | 195 // Save the list of buffered time ranges. |
| 190 WebKit::WebTimeRanges buffered_; | 196 WebKit::WebTimeRanges buffered_; |
| 191 | 197 |
| 192 // Size of the video. | 198 // Size of the video. |
| 193 WebKit::WebSize natural_size_; | 199 WebKit::WebSize natural_size_; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 238 // Whether the video size info is available. | 244 // Whether the video size info is available. |
| 239 bool has_size_info_; | 245 bool has_size_info_; |
| 240 | 246 |
| 241 // Object for allocating stream textures. | 247 // Object for allocating stream textures. |
| 242 scoped_ptr<StreamTextureFactory> stream_texture_factory_; | 248 scoped_ptr<StreamTextureFactory> stream_texture_factory_; |
| 243 | 249 |
| 244 // Object for calling back the compositor thread to repaint the video when a | 250 // Object for calling back the compositor thread to repaint the video when a |
| 245 // frame available. It should be initialized on the compositor thread. | 251 // frame available. It should be initialized on the compositor thread. |
| 246 scoped_ptr<StreamTextureProxy> stream_texture_proxy_; | 252 scoped_ptr<StreamTextureProxy> stream_texture_proxy_; |
| 247 | 253 |
| 254 // Whether media player needs external surface. | |
| 255 bool needs_external_surface_; | |
| 256 | |
| 248 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 257 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 249 }; | 258 }; |
| 250 | 259 |
| 251 } // namespace webkit_media | 260 } // namespace webkit_media |
| 252 | 261 |
| 253 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 262 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |