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

Unified Diff: content/common/gpu/media/vaapi_video_decode_accelerator.h

Issue 1432963003: [Ozone] Extends the lifetime of VaapiWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NOT for upstream Created 5 years, 1 month 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: content/common/gpu/media/vaapi_video_decode_accelerator.h
diff --git a/content/common/gpu/media/vaapi_video_decode_accelerator.h b/content/common/gpu/media/vaapi_video_decode_accelerator.h
index ac9f4be941e2e89dccd0801757d0c65989afd0a1..644db42d40ecf34d3bbd116ae0ffaae53d245fed 100644
--- a/content/common/gpu/media/vaapi_video_decode_accelerator.h
+++ b/content/common/gpu/media/vaapi_video_decode_accelerator.h
@@ -223,9 +223,9 @@ class CONTENT_EXPORT VaapiVideoDecodeAccelerator
typedef std::queue<int32> OutputBuffers;
OutputBuffers output_buffers_;
- scoped_ptr<VaapiWrapper> vaapi_wrapper_;
+ scoped_refptr<VaapiWrapper> vaapi_wrapper_;
- typedef std::map<int32, linked_ptr<VaapiPicture>> Pictures;
+ typedef std::map<int32, scoped_refptr<VaapiPicture>> Pictures;
// All allocated Pictures, regardless of their current state.
// Pictures are allocated once and destroyed at the end of decode.
// Comes after vaapi_wrapper_ to ensure all pictures are destroyed

Powered by Google App Engine
This is Rietveld 408576698