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

Side by Side Diff: media/base/android/media_player_android.h

Issue 196133020: Reducing the IPC latency for MSE video decoding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang warning Created 6 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « media/base/android/media_decoder_job.cc ('k') | media/base/android/media_player_bridge.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // Start playing the media. 46 // Start playing the media.
47 virtual void Start() = 0; 47 virtual void Start() = 0;
48 48
49 // Pause the media. 49 // Pause the media.
50 virtual void Pause(bool is_media_related_action) = 0; 50 virtual void Pause(bool is_media_related_action) = 0;
51 51
52 // Seek to a particular position, based on renderer signaling actual seek 52 // Seek to a particular position, based on renderer signaling actual seek
53 // with MediaPlayerHostMsg_Seek. If eventual success, OnSeekComplete() will be 53 // with MediaPlayerHostMsg_Seek. If eventual success, OnSeekComplete() will be
54 // called. 54 // called.
55 virtual void SeekTo(const base::TimeDelta& timestamp) = 0; 55 virtual void SeekTo(base::TimeDelta timestamp) = 0;
56 56
57 // Release the player resources. 57 // Release the player resources.
58 virtual void Release() = 0; 58 virtual void Release() = 0;
59 59
60 // Set the player volume. 60 // Set the player volume.
61 virtual void SetVolume(double volume) = 0; 61 virtual void SetVolume(double volume) = 0;
62 62
63 // Get the media information from the player. 63 // Get the media information from the player.
64 virtual bool IsRemote() const; 64 virtual bool IsRemote() const;
65 virtual int GetVideoWidth() = 0; 65 virtual int GetVideoWidth() = 0;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 // Resource manager for all the media players. 105 // Resource manager for all the media players.
106 MediaPlayerManager* manager_; 106 MediaPlayerManager* manager_;
107 107
108 DISALLOW_COPY_AND_ASSIGN(MediaPlayerAndroid); 108 DISALLOW_COPY_AND_ASSIGN(MediaPlayerAndroid);
109 }; 109 };
110 110
111 } // namespace media 111 } // namespace media
112 112
113 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ 113 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_
OLDNEW
« no previous file with comments | « media/base/android/media_decoder_job.cc ('k') | media/base/android/media_player_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698