| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // MediaPlayer methods: | 94 // MediaPlayer methods: |
| 95 virtual WebMediaPlayer* webMediaPlayer() const OVERRIDE; | 95 virtual WebMediaPlayer* webMediaPlayer() const OVERRIDE; |
| 96 virtual void load(WebMediaPlayer::LoadType, const WTF::String& url, WebMedia
Player::CORSMode) OVERRIDE; | 96 virtual void load(WebMediaPlayer::LoadType, const WTF::String& url, WebMedia
Player::CORSMode) OVERRIDE; |
| 97 virtual void play() OVERRIDE; | 97 virtual void play() OVERRIDE; |
| 98 virtual void pause() OVERRIDE; | 98 virtual void pause() OVERRIDE; |
| 99 virtual bool supportsSave() const OVERRIDE; | 99 virtual bool supportsSave() const OVERRIDE; |
| 100 virtual double duration() const OVERRIDE; | 100 virtual double duration() const OVERRIDE; |
| 101 virtual double currentTime() const OVERRIDE; | 101 virtual double currentTime() const OVERRIDE; |
| 102 virtual void seek(double time) OVERRIDE; | 102 virtual void seek(double time) OVERRIDE; |
| 103 virtual bool seeking() const OVERRIDE; | 103 virtual bool seeking() const OVERRIDE; |
| 104 virtual double rate() const OVERRIDE; | |
| 105 virtual void setRate(double) OVERRIDE; | |
| 106 virtual bool paused() const OVERRIDE; | 104 virtual bool paused() const OVERRIDE; |
| 107 virtual void setPoster(const WebCore::KURL&) OVERRIDE; | 105 virtual void setPoster(const WebCore::KURL&) OVERRIDE; |
| 108 virtual WebCore::MediaPlayer::NetworkState networkState() const OVERRIDE; | 106 virtual WebCore::MediaPlayer::NetworkState networkState() const OVERRIDE; |
| 109 virtual WebCore::MediaPlayer::ReadyState readyState() const OVERRIDE; | 107 virtual WebCore::MediaPlayer::ReadyState readyState() const OVERRIDE; |
| 110 virtual double maxTimeSeekable() const OVERRIDE; | |
| 111 virtual WTF::PassRefPtr<WebCore::TimeRanges> buffered() const OVERRIDE; | |
| 112 virtual bool didLoadingProgress() const OVERRIDE; | |
| 113 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect&) OVERR
IDE; | 108 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect&) OVERR
IDE; |
| 114 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platfo
rm3DObject texture, GLint level, GLenum type, GLenum internalFormat, bool premul
tiplyAlpha, bool flipY) OVERRIDE; | 109 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platfo
rm3DObject texture, GLint level, GLenum type, GLenum internalFormat, bool premul
tiplyAlpha, bool flipY) OVERRIDE; |
| 115 virtual void setPreload(WebCore::MediaPlayer::Preload) OVERRIDE; | 110 virtual void setPreload(WebCore::MediaPlayer::Preload) OVERRIDE; |
| 116 virtual bool hasSingleSecurityOrigin() const OVERRIDE; | 111 virtual bool hasSingleSecurityOrigin() const OVERRIDE; |
| 117 virtual double mediaTimeForTimeValue(double timeValue) const OVERRIDE; | 112 virtual double mediaTimeForTimeValue(double timeValue) const OVERRIDE; |
| 118 | 113 |
| 119 #if ENABLE(WEB_AUDIO) | 114 #if ENABLE(WEB_AUDIO) |
| 120 virtual WebCore::AudioSourceProvider* audioSourceProvider() OVERRIDE; | 115 virtual WebCore::AudioSourceProvider* audioSourceProvider() OVERRIDE; |
| 121 #endif | 116 #endif |
| 122 | 117 |
| 123 private: | 118 private: |
| 124 explicit WebMediaPlayerClientImpl(WebCore::MediaPlayerClient*); | 119 explicit WebMediaPlayerClientImpl(WebCore::MediaPlayerClient*); |
| 125 | 120 |
| 126 WebCore::HTMLMediaElement& mediaElement() const; | 121 WebCore::HTMLMediaElement& mediaElement() const; |
| 127 | 122 |
| 128 WebCore::MediaPlayerClient* m_client; | 123 WebCore::MediaPlayerClient* m_client; |
| 129 OwnPtr<WebMediaPlayer> m_webMediaPlayer; | 124 OwnPtr<WebMediaPlayer> m_webMediaPlayer; |
| 130 WebCore::MediaPlayer::Preload m_preload; | 125 WebCore::MediaPlayer::Preload m_preload; |
| 131 double m_rate; | |
| 132 | 126 |
| 133 #if OS(ANDROID) | 127 #if OS(ANDROID) |
| 134 // FIXME: This path "only works" on Android. It is a workaround for the prob
lem that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES | 128 // FIXME: This path "only works" on Android. It is a workaround for the prob
lem that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES |
| 135 // texture internally. It should be removed and replaced by the normal paint
path. | 129 // texture internally. It should be removed and replaced by the normal paint
path. |
| 136 // https://code.google.com/p/skia/issues/detail?id=1189 | 130 // https://code.google.com/p/skia/issues/detail?id=1189 |
| 137 void paintOnAndroid(WebCore::GraphicsContext*, const WebCore::IntRect&, uint
8_t alpha); | 131 void paintOnAndroid(WebCore::GraphicsContext*, const WebCore::IntRect&, uint
8_t alpha); |
| 138 SkBitmap m_bitmap; | 132 SkBitmap m_bitmap; |
| 139 bool m_usePaintOnAndroid; | 133 bool m_usePaintOnAndroid; |
| 140 #endif | 134 #endif |
| 141 | 135 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 Mutex provideInputLock; | 178 Mutex provideInputLock; |
| 185 }; | 179 }; |
| 186 | 180 |
| 187 AudioSourceProviderImpl m_audioSourceProvider; | 181 AudioSourceProviderImpl m_audioSourceProvider; |
| 188 #endif | 182 #endif |
| 189 }; | 183 }; |
| 190 | 184 |
| 191 } // namespace blink | 185 } // namespace blink |
| 192 | 186 |
| 193 #endif | 187 #endif |
| OLD | NEW |