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

Unified Diff: media/base/android/media_codec_video_decoder.h

Issue 1242913004: MediaCodecPlayer implementation (stage 3 - browser seek and surface change) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mtplayer-seek
Patch Set: Fixed the check whether surface is empty, faster stopping after SyncStop, cleanup Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: media/base/android/media_codec_video_decoder.h
diff --git a/media/base/android/media_codec_video_decoder.h b/media/base/android/media_codec_video_decoder.h
index ed455c84bbd88a9c9a9620f426060d71070fc883..83afb196485c2ce8d2a141c3d71ebdbe22d3dbb3 100644
--- a/media/base/android/media_codec_video_decoder.h
+++ b/media/base/android/media_codec_video_decoder.h
@@ -44,10 +44,10 @@ class MediaCodecVideoDecoder : public MediaCodecDecoder {
void ReleaseDecoderResources() override;
// Stores the video surface to use with upcoming Configure()
- void SetPendingSurface(gfx::ScopedJavaSurface surface);
+ void SetVideoSurface(gfx::ScopedJavaSurface surface);
// Returns true if there is a video surface to use.
- bool HasPendingSurface() const;
+ bool HasVideoSurface() const;
protected:
bool IsCodecReconfigureNeeded(const DemuxerConfigs& curr,
@@ -63,6 +63,7 @@ class MediaCodecVideoDecoder : public MediaCodecDecoder {
int NumDelayedRenderTasks() const override;
void ReleaseDelayedBuffers() override;
+ void ClearDelayedBuffers() override;
#ifndef NDEBUG
void VerifyUnitIsKeyFrame(const AccessUnit* unit) const override;

Powered by Google App Engine
This is Rietveld 408576698