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

Unified Diff: media/gpu/android_video_decode_accelerator.h

Issue 2095873005: Add SurfaceTexture::release and call it from AVDA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/gpu/android_video_decode_accelerator.h
diff --git a/media/gpu/android_video_decode_accelerator.h b/media/gpu/android_video_decode_accelerator.h
index 69cd6d9d6ecefb97501506b78048cf513ed6cff6..3c1933c29f46267e449863e05c47ef096bb675c4 100644
--- a/media/gpu/android_video_decode_accelerator.h
+++ b/media/gpu/android_video_decode_accelerator.h
@@ -60,10 +60,14 @@ class MEDIA_GPU_EXPORT AndroidVideoDecodeAccelerator
// Returns the Java surface to configure MediaCodec with.
virtual gl::ScopedJavaSurface Initialize(int surface_view_id) = 0;
- // Called before the AVDA does any Destroy() work. This will be
+ // Called before the AVDA does any Destroy() work. The strategy should
+ // release any pending codec buffers, for example.
+ virtual void BeginCleanup(bool have_context,
+ const OutputBufferMap& buffer_map) = 0;
+
+ // Called before the AVDA closes up entirely. This will be
// the last call that the BackingStrategy receives.
- virtual void Cleanup(bool have_context,
- const OutputBufferMap& buffer_map) = 0;
+ virtual void EndCleanup() = 0;
// This returns the SurfaceTexture created by Initialize, or nullptr if
// the strategy was initialized with a SurfaceView.

Powered by Google App Engine
This is Rietveld 408576698