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

Unified Diff: media/gpu/android_video_decode_accelerator.h

Issue 2662173002: media: Don't create a new MediaCodec during AVDA teardown (Closed)
Patch Set: rebase Created 3 years, 10 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
« no previous file with comments | « no previous file | media/gpu/android_video_decode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 56dc1657f97c9e5c5f2521db7d53248454fc887f..c004f7cc16a4b6021e26cd31fbae92c6dcb8412d 100644
--- a/media/gpu/android_video_decode_accelerator.h
+++ b/media/gpu/android_video_decode_accelerator.h
@@ -46,6 +46,7 @@ class MEDIA_GPU_EXPORT AndroidVideoDecodeAccelerator
const gpu::GpuPreferences& gpu_preferences);
AndroidVideoDecodeAccelerator(
+ AVDACodecAllocator* codec_allocator,
const MakeGLContextCurrentCallback& make_context_current_cb,
const GetGLES2DecoderCallback& get_gles2_decoder_cb);
@@ -238,6 +239,8 @@ class MEDIA_GPU_EXPORT AndroidVideoDecodeAccelerator
// To expose client callbacks from VideoDecodeAccelerator.
Client* client_;
+ AVDACodecAllocator* codec_allocator_;
+
// Callback to set the correct gl context.
MakeGLContextCurrentCallback make_context_current_cb_;
« no previous file with comments | « no previous file | media/gpu/android_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698