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

Unified Diff: content/common/gpu/media/vaapi_tfp_picture.cc

Issue 1432963003: [Ozone] Extends the lifetime of VaapiWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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_tfp_picture.cc
diff --git a/content/common/gpu/media/vaapi_tfp_picture.cc b/content/common/gpu/media/vaapi_tfp_picture.cc
index 7dbd1398649d0d9b0b43aa3927985cb43dd1fc9e..211317bd356ca216c1cf8776da3919dc39109848 100644
--- a/content/common/gpu/media/vaapi_tfp_picture.cc
+++ b/content/common/gpu/media/vaapi_tfp_picture.cc
@@ -13,7 +13,7 @@
namespace content {
VaapiTFPPicture::VaapiTFPPicture(
- VaapiWrapper* vaapi_wrapper,
+ const scoped_refptr<VaapiWrapper>& vaapi_wrapper,
const base::Callback<bool(void)> make_context_current,
int32 picture_buffer_id,
uint32 texture_id,
@@ -22,8 +22,7 @@ VaapiTFPPicture::VaapiTFPPicture(
vaapi_wrapper_(vaapi_wrapper),
make_context_current_(make_context_current),
x_display_(gfx::GetXDisplay()),
- x_pixmap_(0) {
-}
+ x_pixmap_(0) {}
VaapiTFPPicture::~VaapiTFPPicture() {
if (glx_image_.get() && make_context_current_.Run()) {
« no previous file with comments | « content/common/gpu/media/vaapi_tfp_picture.h ('k') | content/common/gpu/media/vaapi_video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698