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

Unified Diff: media/filters/gpu_video_decoder.h

Issue 10852009: Clarify ownership of GpuVideoDecodeAcceleratorHost and avoid crash on context loss. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 side-by-side diff with in-line comments
Download patch
Index: media/filters/gpu_video_decoder.h
diff --git a/media/filters/gpu_video_decoder.h b/media/filters/gpu_video_decoder.h
index af6dcf8d6738f5e55f7fffb3170f276306b0a858..33f71c044f2d9b176d1ebd6d50fcd25b8b056ec1 100644
--- a/media/filters/gpu_video_decoder.h
+++ b/media/filters/gpu_video_decoder.h
@@ -125,6 +125,10 @@ class MEDIA_EXPORT GpuVideoDecoder
// thread).
void SetVDA(VideoDecodeAccelerator* vda);
+ // Call VDA::Destroy() on |vda_loop_proxy_| ensuring that |this| outlives the
+ // Destroy() call.
+ void DestroyVDA();
+
// A shared memory segment and its allocated size.
struct SHMBuffer {
SHMBuffer(base::SharedMemory* m, size_t s);

Powered by Google App Engine
This is Rietveld 408576698