Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 2445533002: Don't suspend the pipeline before HaveFutureData while decoding progressing (Closed)
Patch Set: fix compiler error from rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 void OnPlayerReleased() override; 206 void OnPlayerReleased() override;
207 207
208 // This function is called by the RendererMediaPlayerManager to pause the 208 // This function is called by the RendererMediaPlayerManager to pause the
209 // video and release the media player and surface texture when we switch tabs. 209 // video and release the media player and surface texture when we switch tabs.
210 // However, the actual GlTexture is not released to keep the video screenshot. 210 // However, the actual GlTexture is not released to keep the video screenshot.
211 void SuspendAndReleaseResources() override; 211 void SuspendAndReleaseResources() override;
212 212
213 // WebMediaPlayerDelegate::Observer implementation. 213 // WebMediaPlayerDelegate::Observer implementation.
214 void OnHidden() override; 214 void OnHidden() override;
215 void OnShown() override; 215 void OnShown() override;
216 void OnSuspendRequested(bool must_suspend) override; 216 bool OnSuspendRequested(bool must_suspend) override;
217 void OnPlay() override; 217 void OnPlay() override;
218 void OnPause() override; 218 void OnPause() override;
219 void OnVolumeMultiplierUpdate(double multiplier) override; 219 void OnVolumeMultiplierUpdate(double multiplier) override;
220 220
221 protected: 221 protected:
222 // Helper method to update the playing state. 222 // Helper method to update the playing state.
223 void UpdatePlayingState(bool is_playing_); 223 void UpdatePlayingState(bool is_playing_);
224 224
225 // Helper methods for posting task for setting states and update WebKit. 225 // Helper methods for posting task for setting states and update WebKit.
226 void UpdateNetworkState(blink::WebMediaPlayer::NetworkState state); 226 void UpdateNetworkState(blink::WebMediaPlayer::NetworkState state);
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 423
424 // NOTE: Weak pointers must be invalidated before all other member variables. 424 // NOTE: Weak pointers must be invalidated before all other member variables.
425 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; 425 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_;
426 426
427 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 427 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
428 }; 428 };
429 429
430 } // namespace content 430 } // namespace content
431 431
432 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 432 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/media/encrypted_media_browsertest.cc ('k') | content/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698