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

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

Issue 1254293003: MediaCodecPlayer implementation (stage 4 - preroll) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mtplayer-browserseek
Patch Set: Removed unused var, fixed unit test compilation Created 5 years, 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CODEC_PLAYER_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_CODEC_PLAYER_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_PLAYER_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_PLAYER_H_
7 7
8 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 void OnMediaMetadataChanged(base::TimeDelta duration, 232 void OnMediaMetadataChanged(base::TimeDelta duration,
233 const gfx::Size& video_size) override; 233 const gfx::Size& video_size) override;
234 234
235 // This method caches the current time and calls manager's OnTimeUpdate(). 235 // This method caches the current time and calls manager's OnTimeUpdate().
236 void OnTimeUpdate(base::TimeDelta current_timestamp, 236 void OnTimeUpdate(base::TimeDelta current_timestamp,
237 base::TimeTicks current_time_ticks) override; 237 base::TimeTicks current_time_ticks) override;
238 238
239 // Callbacks from decoders 239 // Callbacks from decoders
240 void RequestDemuxerData(DemuxerStream::Type stream_type); 240 void RequestDemuxerData(DemuxerStream::Type stream_type);
241 void OnPrefetchDone(); 241 void OnPrefetchDone();
242 void OnPrerollDone();
242 void OnStopDone(); 243 void OnStopDone();
243 void OnError(); 244 void OnError();
244 void OnStarvation(DemuxerStream::Type stream_type); 245 void OnStarvation(DemuxerStream::Type stream_type);
245 void OnTimeIntervalUpdate(DemuxerStream::Type stream_type, 246 void OnTimeIntervalUpdate(DemuxerStream::Type stream_type,
246 base::TimeDelta now_playing, 247 base::TimeDelta now_playing,
247 base::TimeDelta last_buffered); 248 base::TimeDelta last_buffered);
248 249
249 // Callbacks from video decoder 250 // Callbacks from video decoder
250 void OnVideoCodecCreated(); 251 void OnVideoCodecCreated();
251 void OnVideoResolutionChanged(const gfx::Size& size); 252 void OnVideoResolutionChanged(const gfx::Size& size);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 base::WeakPtr<MediaCodecPlayer> media_weak_this_; 336 base::WeakPtr<MediaCodecPlayer> media_weak_this_;
336 // NOTE: Weak pointers must be invalidated before all other member variables. 337 // NOTE: Weak pointers must be invalidated before all other member variables.
337 base::WeakPtrFactory<MediaCodecPlayer> media_weak_factory_; 338 base::WeakPtrFactory<MediaCodecPlayer> media_weak_factory_;
338 339
339 DISALLOW_COPY_AND_ASSIGN(MediaCodecPlayer); 340 DISALLOW_COPY_AND_ASSIGN(MediaCodecPlayer);
340 }; 341 };
341 342
342 } // namespace media 343 } // namespace media
343 344
344 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_PLAYER_H_ 345 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_PLAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698