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

Side by Side Diff: media/base/android/media_player_bridge.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_player_android.h ('k') | media/base/android/media_player_bridge.cc » ('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) 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 MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 const ReleaseMediaResourcesCB& release_media_resources_cb); 52 const ReleaseMediaResourcesCB& release_media_resources_cb);
53 virtual ~MediaPlayerBridge(); 53 virtual ~MediaPlayerBridge();
54 54
55 // Initialize this object and extract the metadata from the media. 55 // Initialize this object and extract the metadata from the media.
56 virtual void Initialize(); 56 virtual void Initialize();
57 57
58 // MediaPlayerAndroid implementation. 58 // MediaPlayerAndroid implementation.
59 virtual void SetVideoSurface(gfx::ScopedJavaSurface surface) OVERRIDE; 59 virtual void SetVideoSurface(gfx::ScopedJavaSurface surface) OVERRIDE;
60 virtual void Start() OVERRIDE; 60 virtual void Start() OVERRIDE;
61 virtual void Pause(bool is_media_related_action ALLOW_UNUSED) OVERRIDE; 61 virtual void Pause(bool is_media_related_action ALLOW_UNUSED) OVERRIDE;
62 virtual void SeekTo(const base::TimeDelta& timestamp) OVERRIDE; 62 virtual void SeekTo(base::TimeDelta timestamp) OVERRIDE;
63 virtual void Release() OVERRIDE; 63 virtual void Release() OVERRIDE;
64 virtual void SetVolume(double volume) OVERRIDE; 64 virtual void SetVolume(double volume) OVERRIDE;
65 virtual int GetVideoWidth() OVERRIDE; 65 virtual int GetVideoWidth() OVERRIDE;
66 virtual int GetVideoHeight() OVERRIDE; 66 virtual int GetVideoHeight() OVERRIDE;
67 virtual base::TimeDelta GetCurrentTime() OVERRIDE; 67 virtual base::TimeDelta GetCurrentTime() OVERRIDE;
68 virtual base::TimeDelta GetDuration() OVERRIDE; 68 virtual base::TimeDelta GetDuration() OVERRIDE;
69 virtual bool IsPlaying() OVERRIDE; 69 virtual bool IsPlaying() OVERRIDE;
70 virtual bool CanPause() OVERRIDE; 70 virtual bool CanPause() OVERRIDE;
71 virtual bool CanSeekForward() OVERRIDE; 71 virtual bool CanSeekForward() OVERRIDE;
72 virtual bool CanSeekBackward() OVERRIDE; 72 virtual bool CanSeekBackward() OVERRIDE;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // Weak pointer passed to |listener_| for callbacks. 179 // Weak pointer passed to |listener_| for callbacks.
180 // NOTE: Weak pointers must be invalidated before all other member variables. 180 // NOTE: Weak pointers must be invalidated before all other member variables.
181 base::WeakPtrFactory<MediaPlayerBridge> weak_factory_; 181 base::WeakPtrFactory<MediaPlayerBridge> weak_factory_;
182 182
183 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge); 183 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge);
184 }; 184 };
185 185
186 } // namespace media 186 } // namespace media
187 187
188 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ 188 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_
OLDNEW
« no previous file with comments | « media/base/android/media_player_android.h ('k') | media/base/android/media_player_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698